Skip to content

Commit

Permalink
hinic: fix wrong value of MIN_SKB_LEN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luo bin authored and davem330 committed Mar 22, 2020
1 parent 0da7c32 commit 7296695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/huawei/hinic/hinic_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7296695

Please sign in to comment.