Skip to content

Drop get_headlen functions in favor of generic function

Alexander Duyck netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: Add function for parsing the header length out of linear ethernet framesinclude/linux/etherdevice.h include/linux/skbuff.h include/net/flow_keys.h +3 more+66 -161 reply
2/3igb: use new eth_get_headlen interfacedrivers/net/ethernet/intel/igb/igb_main.c+1 -1081 reply
3/3ixgbe: use new eth_get_headlen interfacedrivers/net/ethernet/intel/ixgbe/ixgbe_main.c+1 -1151 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJeff KirsherAlexei Starovoitov
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] Drop get_headlen functions in favor of generic function

This series replaces the igb_get_headlen and ixgbe_get_headlen functions with a generic function named eth_get_headlen.

I have done some performance testing on ixgbe with 258 byte frames since the calls are only used on frames larger than 256 bytes and have seen no significant difference in CPU utilization.

v2: renamed __skb_get_poff to skb_get_poff
renamed ___skb_get_poff to __skb_get_poff

---

Alexander Duyck (3):
net: Add function for parsing the header length out of linear ethernet frames
igb: use new eth_get_headlen interface
ixgbe: use new eth_get_headlen interface

 drivers/net/ethernet/intel/igb/igb_main.c     |  109 -----------------------
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |  116 -------------------------
 include/linux/etherdevice.h                   |    1 
 include/linux/skbuff.h                        |    4 +
 include/net/flow_keys.h                       |    2 
 net/core/filter.c                             |    2 
 net/core/flow_dissector.c                     |   46 +++++++---
 net/ethernet/eth.c                            |   27 ++++++
 8 files changed, 68 insertions(+), 239 deletions(-)