Skip to content

Commit

Permalink
qede: use ethtool_rx_flow_rule() to remove duplicated parser code
Browse files Browse the repository at this point in the history
The qede driver supports for ethtool_rx_flow_spec and flower, both
codebases look very similar.

This patch uses the ethtool_rx_flow_rule() infrastructure to remove the
duplicated ethtool_rx_flow_spec parser and consolidate ACL offload
support around the flow_rule infrastructure.

Furthermore, more code can be consolidated by merging
qede_add_cls_rule() and qede_add_tc_flower_fltr(), these two functions
also look very similar.

This driver currently provides simple ACL support, such as 5-tuple
matching, drop policy and queue to CPU.

Drivers that support more features can benefit from this infrastructure
to save even more redundant codebase.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
ummakynes authored and davem330 committed Feb 6, 2019
1 parent 5bdf412 commit 37c5d3e
Showing 1 changed file with 76 additions and 203 deletions.
Loading

0 comments on commit 37c5d3e

Please sign in to comment.