qed*: Support other classification modes.
authorManish Chopra <manish.chopra@cavium.com>
Thu, 24 May 2018 16:54:51 +0000 (09:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 20:10:42 +0000 (16:10 -0400)
commit3893fc62b1769db3ef160f7f1e36d3db754497ee
tree348383b96ad89169a04c355acc5031b843236f01
parent89ffd14ee95dca812874fcd25ad3538ff3592a49
qed*: Support other classification modes.

Currently, driver supports flow classification to PF
receive queues based on TCP/UDP 4 tuples [src_ip, dst_ip,
src_port, dst_port] only.

This patch enables to configure different flow profiles
[For example - only UDP dest port or src_ip based] on the
adapter so that classification can be done according to
just those fields as well. Although, at a time just one
type of flow configuration is supported due to limited
number of flow profiles available on the device.

For example -

ethtool -N enp7s0f0 flow-type udp4 dst-port 45762 action 2
ethtool -N enp7s0f0 flow-type tcp4 src-ip 192.16.4.10 action 1
ethtool -N enp7s0f0 flow-type udp6 dst-port 45762 action 3

Signed-off-by: Manish Chopra <manish.chopra@cavium.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qede/qede_filter.c
include/linux/qed/qed_eth_if.h