Skip to content
Commit 803d3532 authored by Subbaraya Sundeep's avatar Subbaraya Sundeep Committed by Ruiqiang Hao
Browse files

octeontx2-pf: Add raw IPv4 and SCTP4 filters



commit 89d75f25166de27313b62dc15633d97fcb23f667 from
git@git.assembla.com:cavium/WindRiver.linux.git

This patch does the following:
Moves the flow related code to otx2_flow.c from
otx2_ethtool.c
Refactors the existing ipv4 code to separate
function otx2_prepare_ipv4_flow
Adds the raw IPv4 and SCTP4 ntuple filters.

ethtool commands:
ethtool -U eth0 flow-type ip4 dst-ip <addr> \
src-ip <addr> action <N>

ethtool -U eth0 flow-type sctp4 dst-ip <addr> \
src-ip <addr> src-port <N> dst-port <N> action <N>

Change-Id: I5c818d872047eddf8b51efcf643b48096dbea042
Signed-off-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/38177


Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent c2b4f7ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment