netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/11] flow_dissector:  Paramterize dissection and other features
@ 2015-09-01 16:24 Tom Herbert
  2015-09-01 16:24 ` [PATCH net-next 01/11] flow_dissector: Move skb related functions to skbuff.h Tom Herbert
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Tom Herbert @ 2015-09-01 16:24 UTC (permalink / raw)
  To: davem, netdev; +Cc: kernel-team

This patch set adds some new capabilities to flow_dissector:

- Add flags to flow dissector functions to control dissection
  - Flag to stop dissection when L3 header is seen (don't
    dissect L4)
  - Flag to stop dissection when encapsulation is detected
  - Flag to parse first fragment of fragmented packet. This
    may provide L4 ports
- Added new reporting in key_control
  - Packet is a fragment
  - Packet is a first fragment
  - Packet has encapsulation

Also:
  - Make __skb_set_sw_hash a general function
  - Create functions to get a flow hash based on flowi4 or flowi6
    structures without an reference to an skbuff
  - Ignore flow dissector return value from ___skb_get_hash. Just
    use whatever key fields are found to make a hash

Tested:

Ran 200 netperf TCP_RR instances for IPv6 and IPv4. Did not see any
regression. Ran UDP_RR with 10000 byte request and response size
for IPv4 and IPv6, no regression observed however I did see better
performance with IPv6 flow labels due to use of flow labels for L4
hash.

Tom Herbert (11):
  flow_dissector: Move skb related functions to skbuff.h
  skbuff: Make __skb_set_sw_hash a general function
  flowi: Abstract out functions to get flow hash based on flowi
  flow_dissector: Jump to exit code in __skb_flow_dissect
  flow_dissector: Add flags argument to skb_flow_dissector functions
  flow_dissector: Add control/reporting of fragmentation
  flow_dissector: Support IPv6 fragment header
  flow_dissector: Add flag to stop parsing at L3
  flow_dissector: Add flag to stop parsing when an IPv6 flow label is
    seen
  flow_dissector: Add control/reporting of encapsulation
  flow_dissector: Ignore flow dissector return value from
    ___skb_get_hash

 drivers/net/bonding/bond_main.c             |   2 +-
 drivers/net/ethernet/cisco/enic/enic_clsf.c |   2 +-
 drivers/net/hyperv/netvsc_drv.c             |   2 +-
 include/linux/skbuff.h                      | 113 +++++++++++++++++----
 include/net/flow.h                          |  19 ++++
 include/net/flow_dissector.h                |  65 +++----------
 net/core/flow.c                             |  36 +++++++
 net/core/flow_dissector.c                   | 146 ++++++++++++++++++----------
 net/ethernet/eth.c                          |   2 +-
 net/sched/cls_flow.c                        |   2 +-
 net/sched/cls_flower.c                      |   2 +-
 net/sched/sch_choke.c                       |   4 +-
 12 files changed, 267 insertions(+), 128 deletions(-)

-- 
1.8.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-09-01 22:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 16:24 [PATCH net-next 00/11] flow_dissector: Paramterize dissection and other features Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 01/11] flow_dissector: Move skb related functions to skbuff.h Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 02/11] skbuff: Make __skb_set_sw_hash a general function Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 03/11] flowi: Abstract out functions to get flow hash based on flowi Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 04/11] flow_dissector: Jump to exit code in __skb_flow_dissect Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 05/11] flow_dissector: Add flags argument to skb_flow_dissector functions Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 06/11] flow_dissector: Add control/reporting of fragmentation Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 07/11] flow_dissector: Support IPv6 fragment header Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 08/11] flow_dissector: Add flag to stop parsing at L3 Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 09/11] flow_dissector: Add flag to stop parsing when an IPv6 flow label is seen Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 10/11] flow_dissector: Add control/reporting of encapsulation Tom Herbert
2015-09-01 16:24 ` [PATCH net-next 11/11] flow_dissector: Ignore flow dissector return value from ___skb_get_hash Tom Herbert
2015-09-01 22:22 ` [PATCH net-next 00/11] flow_dissector: Paramterize dissection and other features David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).