]> 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)
commit7ec6d82b23b05d91ba2437df692191ea44f0a15e
tree6e06c366209fc543af4f6783ba8ac2ee68110ad8
parent0dd328ac4cee36af75c61b2d99c40f1fa5eebaf8
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