OSDN Git Service

net: hns3: add 8 BD limit for tx flow
authorPeng Li <lipeng321@huawei.com>
Sat, 26 Jan 2019 16:49:19 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:33:31 +0000 (09:33 -0800)
commit51e8439f34962794f6c5010a44893fe58450b8df
tree728f22a0ab314df729f52fd9e3eb880c6b1911d3
parent1cce5eb6506d8e4924927062398e8d9ff6411536
net: hns3: add 8 BD limit for tx flow

A single transmit packet can span up to 8 descriptors according
to the HW limit. If a skb has more than 8 frags, driver uses
skb_copy to get a new skb which has less frags.

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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c