linux/drivers/net/ethernet/netronome/nfp/flower
John Hurley 29a5dcae27 nfp: flower: offload phys port MTU change
Trigger a port mod message to request an MTU change on the NIC when any
physical port representor is assigned a new MTU value. The driver waits
10 msec for an ack that the FW has set the MTU. If no ack is received the
request is rejected and an appropriate warning flagged.

Rather than maintain an MTU queue per repr, one is maintained per app.
Because the MTU ndo is protected by the rtnl lock, there can never be
contention here. Portmod messages from the NIC are also protected by
rtnl so we first check if the portmod is an ack and, if so, handle outside
rtnl and the cmsg work queue.

Acks are detected by the marking of a bit in a portmod response. They are
then verfied by checking the port number and MTU value expected by the
app. If the expected MTU is 0 then no acks are currently expected.

Also, ensure that the packet headroom reserved by the flower firmware is
considered when accepting an MTU change on any repr.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-30 10:18:55 -04:00
..
action.c nfp: flower: compile Geneve encap actions 2017-12-19 14:52:13 -05:00
cmsg.c nfp: flower: offload phys port MTU change 2018-03-30 10:18:55 -04:00
cmsg.h nfp: flower: offload phys port MTU change 2018-03-30 10:18:55 -04:00
main.c nfp: flower: offload phys port MTU change 2018-03-30 10:18:55 -04:00
main.h nfp: flower: offload phys port MTU change 2018-03-30 10:18:55 -04:00
Makefile nfp: add Makefiles to all directories 2018-02-22 15:22:50 -05:00
match.c nfp: flower: implement ip fragmentation match offload 2018-03-26 13:01:09 -04:00
metadata.c nfp: fix flower offload metadata flag usage 2017-11-17 14:09:35 +09:00
offload.c nfp: flower: implement ip fragmentation match offload 2018-03-26 13:01:09 -04:00
tunnel_conf.c nfp: fix kdoc warnings on nested structures 2018-02-06 11:43:58 -05:00