1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel/ixgbevf
Eric Dumazet 80bfab79b8 net: adopt skb_network_offset() and similar helpers
This is a cleanup patch, making code a bit more concise.

1) Use skb_network_offset(skb) in place of
       (skb_network_header(skb) - skb->data)

2) Use -skb_network_offset(skb) in place of
       (skb->data - skb_network_header(skb))

3) Use skb_transport_offset(skb) in place of
       (skb_transport_header(skb) - skb->data)

4) Use skb_inner_transport_offset(skb) in place of
       (skb_inner_transport_header(skb) - skb->data)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com> # for sfc
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-03-04 08:47:06 +00:00
..
defines.h ixgbevf: Mailbox improvements 2021-11-17 08:07:42 -08:00
ethtool.c net: ethtool: pass a pointer to parameters to get/set_rxfh ethtool ops 2023-12-13 22:07:16 -08:00
ipsec.c ixgbevf: fill IPsec state validation failure reason 2023-01-26 16:28:48 -08:00
ipsec.h ixgbe: propagate XFRM offload state direction instead of flags 2022-05-06 08:32:52 +02:00
ixgbevf.h ixgbevf: Remove unused function declarations 2023-08-04 18:03:00 -07:00
ixgbevf_main.c net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
Makefile ixgbe/ixgbevf: fix XFRM_ALGO dependency 2018-10-31 10:53:15 -07:00
mbx.c ixgbevf: Mailbox improvements 2021-11-17 08:07:42 -08:00
mbx.h ixgbevf: add disable link state 2022-03-08 07:41:18 -08:00
regs.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
vf.c intel/ixgbevf:fix repeated words in comments 2022-06-30 11:08:45 -07:00
vf.h ixgbevf: add disable link state 2022-03-08 07:41:18 -08:00