]> git.baikalelectronics.ru Git - kernel.git/commit
qede: Add destination ip based flow profile.
authorManish Chopra <manish.chopra@cavium.com>
Thu, 9 Aug 2018 18:13:50 +0000 (11:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:05:30 +0000 (14:05 -0700)
commitc05501d42426a19d498143a8c5ceb7263bce8c7e
tree3a4e6a53291c43bc22d6abc07bbb1a59ef644938
parent3264b410c70dc3b32af44974e26dd42fbff6a110
qede: Add destination ip based flow profile.

This patch adds support for dropping and redirecting
the flows based on destination IP in the packet.

This also moves the profile mode settings in their own
functions which can be used through tc flows in successive
patch.

For example -

ethtool -N p5p1 flow-type tcp4 dst-ip 192.168.40.100 action -1
ethtool -N p5p1 flow-type udp4 dst-ip 192.168.50.100 action 1
ethtool -N p5p1 flow-type tcp4 dst-ip 192.168.60.100 action 0x100000000

Signed-off-by: Manish Chopra <manish.chopra@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_filter.c