summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLuo bin <luobin9@huawei.com>2020-03-20 23:13:20 +0000
committerDavid S. Miller <davem@davemloft.net>2020-03-21 19:44:16 -0700
commit7296695fc16dd1761dbba8b68a9181c71cef0633 (patch)
tree417fc0560a638c2a7e88de334806cf4b51e19af7 /drivers
parent0da7c322f116210ebfdda59c7da663a6fc5e9cc8 (diff)
hinic: fix wrong value of MIN_SKB_LEN
the minimum value of skb len that hw supports is 32 rather than 17 Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/huawei/hinic/hinic_tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_tx.c b/drivers/net/ethernet/huawei/hinic/hinic_tx.c
index 375d81d03e86..365016450bdb 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_tx.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_tx.c
@@ -45,7 +45,7 @@
#define HW_CONS_IDX(sq) be16_to_cpu(*(u16 *)((sq)->hw_ci_addr))
-#define MIN_SKB_LEN 17
+#define MIN_SKB_LEN 32
#define MAX_PAYLOAD_OFFSET 221
#define TRANSPORT_OFFSET(l4_hdr, skb) ((u32)((l4_hdr) - (skb)->data))