]> 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)
commit1490cffbb7a2ef7483e90c74e45b0b45e16cd9d7
tree47c322de382f6443f4b7a2e027d1458d2191255e
parent1c74b57c8f64809462c42948d6ebab43ba271d37
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