]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Add flow classification using IP next level protocol
authorNaveen Mamindlapalli <naveenm@marvell.com>
Mon, 11 Jan 2021 11:25:37 +0000 (16:55 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jan 2021 03:11:48 +0000 (19:11 -0800)
commit6d0fc53811d89a361a9f51379d1c4874bbf31f4b
tree47c322de382f6443f4b7a2e027d1458d2191255e
parent09c1be4cbfadfb640bd638b534c8523c37247d48
octeontx2-pf: Add flow classification using IP next level protocol

This patch adds support to install flow rules using ipv4 proto or
ipv6 next header field to distinguish between tcp/udp/sctp/esp/ah
flows when user doesn't specify the other match creteria related to
the flow such as tcp/udp/sctp source port and destination port, ah/esp
spi value. This is achieved by matching the layer type extracted by
NPC HW into the search key. Modified the driver to use Ethertype as
match criteria when user doesn't specify source IP address and dest
IP address. The esp/ah flow rule matching using security parameter
index (spi) is not supported as of now since the field is not extracted
into MCAM search key. Modified npc_check_field function to return bool.

Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20210111112537.3277-1-naveenm@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/npc.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c