diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2019-04-25 15:42:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-26 19:13:28 +0300 |
commit | ea4858670717fd948dab0113a5ee65486494a607 (patch) | |
tree | 47d81e3bc38462121d0b0185fe2dfd294f373a09 /drivers/net/ethernet/hisilicon/hns3/hns3vf | |
parent | 63380a1ae4ced8aef67659ff9547c69ef8b9613a (diff) | |
download | linux-ea4858670717fd948dab0113a5ee65486494a607.tar.xz |
net: hns3: handle the BD info on the last BD of the packet
The bdinfo handled in hns3_handle_bdinfo is only valid on the
last BD of the current packet, currently the bd info may be handled
based on the first BD if the packet has more than two BDs, which
may cause rx error.
This patch fixes it by using the last BD of the current packet in
hns3_handle_bdinfo.
Also, hns3_set_rx_skb_rss_type has used RSS hash value from the last
BD of the current packet, so remove the same last BD calculation in
hns3_set_rx_skb_rss_type and call it from hns3_handle_bdinfo.
Fixes: e55970950556 ("net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3vf')
0 files changed, 0 insertions, 0 deletions