diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2019-12-19 14:57:40 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-20 21:20:39 -0800 |
commit | b2598318eb455c306e703ab30e18b88a1dc7df97 (patch) | |
tree | 9b2b1f45650722223a58527335d79afd4f208e74 /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | |
parent | tipc: make legacy address flag readable over netlink (diff) | |
download | linux-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