aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-12-19 14:57:40 +0800
committerDavid S. Miller <davem@davemloft.net>2019-12-20 21:20:39 -0800
commitb2598318eb455c306e703ab30e18b88a1dc7df97 (patch)
tree9b2b1f45650722223a58527335d79afd4f208e74 /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
parenttipc: make legacy address flag readable over netlink (diff)
downloadlinux-dev-b2598318eb455c306e703ab30e18b88a1dc7df97.tar.xz
linux-dev-b2598318eb455c306e703ab30e18b88a1dc7df97.zip
net: hns3: check FE bit before calling hns3_add_frag()
A BD with FE bit means that it is the last BD of a packet, currently the FE bit is checked before calling hns3_add_frag(), which is unnecessary because the FE bit may have been checked in some case. This patch checks the FE bit before calling hns3_add_frag() after processing the first BD of a SKB and adjust the location of memcpy() to reduce duplication. Signed-off-by: Yunsheng Lin <linyunsheng@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/hns3pf/hclge_mbx.c')
0 files changed, 0 insertions, 0 deletions