]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hinic: fix wrong value of MIN_SKB_LEN
authorLuo bin <luobin9@huawei.com>
Fri, 20 Mar 2020 23:13:20 +0000 (23:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:11:50 +0000 (16:11 +0200)
[ Upstream commit 7296695fc16dd1761dbba8b68a9181c71cef0633 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_tx.c

index 375d81d03e8667f5b923395725129c7b16b8cf42..365016450bdbe03401e7249c03367eec1f6ad5f0 100644 (file)
@@ -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))