]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: Remove the wrong assumption about transport offset
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Thu, 21 Feb 2019 12:40:04 +0000 (12:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 20:55:32 +0000 (12:55 -0800)
commit3517dfe6f23608951044cbfc833fa108603441fa
treefb2f6a96371dba4b8d0cf9aac18571d8a9447be4
parent6437866e493fa5aa5be03dfb94e1d686a7fc984b
net/mlx5e: Remove the wrong assumption about transport offset

skb_transport_offset() == 0 is not a special value. The only special
value is when skb->transport_header is ~0U, and it's checked by
skb_transport_header_was_set().

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c