nfp: bpf: rework MTU checking
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 28 Aug 2019 05:36:28 +0000 (22:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 22:49:05 +0000 (00:49 +0200)
commitbc2796db5a0246acc998cc5ab2e7f8d6e4e4c146
tree9fa58185a1a17e1576f4d8dbcd3939a9132cc703
parentc5a2c734b4fe8b1a21d7f885241ce38a51651343
nfp: bpf: rework MTU checking

If control channel MTU is too low to support map operations a warning
will be printed. This is not enough, we want to make sure probe fails
in such scenario, as this would clearly be a faulty configuration.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/cmsg.c
drivers/net/ethernet/netronome/nfp/bpf/main.c
drivers/net/ethernet/netronome/nfp/bpf/main.h
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c