nfp: modify app MTU setting callbacks
authorJohn Hurley <john.hurley@netronome.com>
Thu, 29 Mar 2018 01:50:06 +0000 (18:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 14:18:54 +0000 (10:18 -0400)
commit167cebeffadd45ce1e786889ab9346c15d64389b
tree23c2a23679e34361ddb03a2c694302c0af638c7a
parent44465c47a4a3adba98588b081e6880e9b2071fa8
nfp: modify app MTU setting callbacks

Rename the 'change_mtu' app callback to 'check_mtu'. This is called
whenever an MTU change is requested on a netdev. It can reject the
change but is not responsible for implementing it.

Introduce a new 'repr_change_mtu' app callback that is hit when the MTU
of a repr is to be changed. This is responsible for performing the MTU
change and verifying it.

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>
drivers/net/ethernet/netronome/nfp/bpf/main.c
drivers/net/ethernet/netronome/nfp/nfp_app.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c