OpenCloudOS-Kernel/drivers/net/ethernet/intel/fm10k
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
..
Makefile fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k.h fm10k: initialize xps at driver load 2015-12-13 15:28:43 -08:00
fm10k_common.c fm10k: Resolve various spelling errors and checkpatch warnings 2015-03-03 01:07:23 -08:00
fm10k_common.h fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_dcbnl.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_debugfs.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_ethtool.c fm10k: cleanup overly long lines 2015-12-13 15:28:38 -08:00
fm10k_iov.c fm10k: add support for extra debug statistics 2015-09-22 15:58:27 -07:00
fm10k_main.c fm10k: don't reinitialize RSS flow table when RXFH configured 2016-02-16 15:19:49 -05:00
fm10k_mbx.c fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_mbx.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_netdev.c net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
fm10k_pci.c fm10k: use true/false for boolean get_host_state 2015-12-22 05:16:45 -08:00
fm10k_pf.c fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k_pf.h fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k_ptp.c fm10k: fix incorrect free on skb in ts_tx_enqueue 2015-06-17 14:20:36 -07:00
fm10k_tlv.c fm10k: use ether_addr_equal instead of memcmp 2015-12-22 05:01:58 -08:00
fm10k_tlv.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_type.h fm10k: remove unused struct element 2015-12-22 05:13:07 -08:00
fm10k_vf.c fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00
fm10k_vf.h fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures 2015-12-22 05:10:01 -08:00