linux/drivers/net/ethernet/qlogic/qede
Mintz, Yuval be47c55557 qede: Split PF/VF ndos.
PFs and VFs share the same structure of NDOs today,
and the VFs explicitly fails the ndo_xdp() callback stating
it doesn't support XDP.

This results in lots of:

  [qede_xdp:1032(enp131s2)]VFs don't support XDP
  ------------[ cut here ]------------
  WARNING: CPU: 4 PID: 1426 at net/core/rtnetlink.c:1637 rtnl_dump_ifinfo+0x354/0x3c0
  ...
  Call Trace:
    ? __alloc_skb+0x9b/0x1d0
    netlink_dump+0x122/0x290
    netlink_recvmsg+0x27d/0x430
    sock_recvmsg+0x3d/0x50
  ...

As every dump request for the VF interface info would fail due to
rtnl_xdp_fill() returning an error code.

To resolve this, introduce a subset of the NDOs meant for the VF
in a seperate structure and register that one instead for VFs,
and omit the ndo_xdp initialization.

Fixes: 40b8c45492 ("qede: Prevent VFs from using XDP")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-09 11:24:22 -04:00
..
Makefile qede: Add driver support for PTP 2017-02-15 12:42:53 -05:00
qede_dcbnl.c qed: Support dcbnl IEEE selector field. 2017-04-24 12:19:55 -04:00
qede_ethtool.c qede: Fix possible misconfiguration of advertised autoneg value. 2017-05-04 12:31:03 -04:00
qede_filter.c qede: Split PF/VF ndos. 2017-05-09 11:24:22 -04:00
qede_fp.c qede: Disable tunnel offloads for non offloaded UDP ports 2017-04-25 11:49:31 -04:00
qede_main.c qede: Split PF/VF ndos. 2017-05-09 11:24:22 -04:00
qede_ptp.c qed*: Fix issues in the ptp filter config implementation. 2017-05-02 15:33:01 -04:00
qede_ptp.h qede: Add support for PTP resource locking. 2017-04-27 16:51:34 -04:00
qede_roce.c qed*: Update to dual-license 2017-01-01 21:02:14 -05:00
qede.h qede: Fix concurrency issue in PTP Tx path processing. 2017-05-02 15:33:01 -04:00