]> 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)
commite2636f3c077a708a16a7b30789e0a72d8b5fca1a
tree3a4e6a53291c43bc22d6abc07bbb1a59ef644938
parentb7222e9752fe4bb2ee2e442ec8ed058debbcc545
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