alistair23-linux/drivers/net/ethernet/sfc
John Fastabend 5eb4dce3b3 net: relax setup_tc ndo op handle restriction
I added this check in setup_tc to multiple drivers,

 if (handle != TC_H_ROOT || tc->type != TC_SETUP_MQPRIO)

Unfortunately restricting to TC_H_ROOT like this breaks the old
instantiation of mqprio to setup a hardware qdisc. This patch
relaxes the test to only check the type to make it equivalent
to the check before I broke it. With this the old instantiation
continues to work.

A good smoke test is to setup mqprio with,

# tc qdisc add dev eth4 root mqprio num_tc 8 \
  map 0 1 2 3 4 5 6 7 \
  queues 0@0 1@1 2@2 3@3 4@4 5@5 6@6 7@7

Fixes: e4c6734eaa ("net: rework ndo tc op to consume additional qdisc handle paramete")
Reported-by: Singh Krishneil <krishneil.k.singh@intel.com>
Reported-by: Jake Keller <jacob.e.keller@intel.com>
CC: Murali Karicheri <m-karicheri2@ti.com>
CC: Shradha Shah <sshah@solarflare.com>
CC: Or Gerlitz <ogerlitz@mellanox.com>
CC: Ariel Elior <ariel.elior@qlogic.com>
CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: Bruce Allan <bruce.w.allan@intel.com>
CC: Jesse Brandeburg <jesse.brandeburg@intel.com>
CC: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-03 16:25:15 -05:00
..
bitfield.h
ef10.c sfc: Downgrade or remove some error messages 2015-12-23 22:06:39 -05:00
ef10_regs.h
ef10_sriov.c sfc: Ensure down_write(&filter_sem) and up_write() are matched before calling efx_net_open() 2015-07-08 16:18:52 -07:00
ef10_sriov.h sfc: add legacy method for changing a PF's MAC address 2015-07-08 16:07:33 -07:00
efx.c sfc: Downgrade or remove some error messages 2015-12-23 22:06:39 -05:00
efx.h net: rework setup_tc ndo op to consume general tc operand 2016-02-17 09:47:35 -05:00
enum.h
ethtool.c sfc: implement IPv6 NFC (and IPV4_USER_FLOW) 2016-02-11 07:16:18 -05:00
falcon.c sfc: Allow driver to cope with a lower number of VIs than it needs for RSS 2015-08-28 13:53:47 -07:00
falcon_boards.c
farch.c sfc: only use RSS filters if we're using RSS 2015-12-12 00:26:18 -05:00
farch_regs.h
filter.h
io.h
Kconfig
Makefile
mcdi.c sfc: Downgrade EPERM messages from MCDI to debug 2015-12-23 22:06:39 -05:00
mcdi.h sfc: Handle MCDI proxy authorisation 2015-12-23 22:06:39 -05:00
mcdi_mon.c
mcdi_pcol.h sfc: update MCDI protocol definitions 2015-07-21 22:21:31 -07:00
mcdi_port.c
mdio_10g.c
mdio_10g.h
mtd.c
net_driver.h sfc: use ALIGN macro for aligning frame sizes 2015-12-02 23:56:37 -05:00
nic.c
nic.h sfc: enable cascaded multicast filters in MCFW 2015-07-21 22:21:31 -07:00
phy.h
ptp.c net: sfc: avoid using timespec 2015-10-01 09:59:24 -07:00
qt202x_phy.c
rx.c net: move skb_mark_napi_id() into core networking stack 2015-11-18 16:17:41 -05:00
selftest.c sfc: allow ethtool selftest and MC reboot to complete on an unprivileged function 2015-07-31 15:32:05 -07:00
selftest.h
siena.c sfc: Allow driver to cope with a lower number of VIs than it needs for RSS 2015-08-28 13:53:47 -07:00
siena_sriov.c
siena_sriov.h
sriov.c
sriov.h
tenxpress.c
tx.c net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
txc43128_phy.c sfc: fix a timeout loop 2015-12-15 12:46:26 -05:00
vfdi.h
workarounds.h