]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: support fallback packets from internal ports
authorJohn Hurley <john.hurley@netronome.com>
Mon, 15 Apr 2019 14:55:56 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2019 22:45:36 +0000 (15:45 -0700)
commita0eb88994baf71b6bfa23265d1790aa4f8413f12
tree6e06c366209fc543af4f6783ba8ac2ee68110ad8
parente048df0cee473cbddfbd5bc4de1f4f3d1d1c3d24
nfp: flower: support fallback packets from internal ports

FW may receive a packet with its ingress port marked as an internal port.
If a rule does not exist to match on this port, the packet will be sent to
the NFP driver. Modify the flower app to detect packets from such internal
ports and convert the ingress port to the correct kernel space netdev.

At this point, it is assumed that fallback packets from internal ports are
to be sent out said port. Therefore, set the redir_egress bool to true on
detection of these ports.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/main.c