]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commitf41dd0595d0668e0197eaacc66ac18703a1be758
tree6e06c366209fc543af4f6783ba8ac2ee68110ad8
parent27f54b582567bef2bfb9ee6f23aed6137cf9cfcb
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