]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Fixes the init of the VALID BD info in the descriptor
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 25 May 2018 18:43:02 +0000 (19:43 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:41:19 +0000 (14:41 -0400)
commit4169a6863fa526b0c4914f6b20ac80ae4df6fb58
treefaa91b52a17977908c501a8223d0614b55d35c0f
parentb46e2efaab82619d5b3a7a4ec129f3bdc56fc9dc
net: hns3: Fixes the init of the VALID BD info in the descriptor

BugLink: https://bugs.launchpad.net/bugs/1768670
RX Buffer Descriptor contains a VALID bit which indicates if the BD
is valid and has some data. This field is set by HNS3 hardware to
intimate the driver of some valid data present in the BD. nd should
be reset by the driver when BD is being used again. In the existing
code this bit was not being (re-)initialized properly and hence was
causing problems.

Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 7d0b130cbbfa4651cc1ab9268a2956c1b9d82ff9 linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c