OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlxsw
Danielle Ratson 09139f67d3 mlxsw: Add QinQ configuration vetoes
After adding support for QinQ, a.k.a 802.1ad protocol, there are a few
scenarios that should be vetoed.

The vetoes are motivated by various ASIC limitations.
For example, a port that is member in a 802.1ad bridge cannot have 802.1q
uppers as the port needs to be configured to treat 802.1q packets as
untagged packets.

Veto all those unsupported scenarios and return suitable messages.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-01 15:21:13 -08:00
..
Kconfig mlxsw: Fix firmware flashing 2020-11-18 11:07:00 -08:00
Makefile mlxsw: spectrum_policer: Add policer core 2020-07-15 18:10:00 -07:00
cmd.h
core.c devlink: move request_firmware out of driver 2020-11-19 21:40:57 -08:00
core.h mlxsw: Update transceiver_overheat counter according to MTWE 2020-09-27 13:27:00 -07:00
core_acl_flex_actions.c mlxsw: core_acl_flex_actions: Add police action 2020-07-15 18:10:00 -07:00
core_acl_flex_actions.h mlxsw: core_acl_flex_actions: Add police action 2020-07-15 18:10:00 -07:00
core_acl_flex_keys.c mlxsw: core_acl: Avoid defining static variable in header file 2020-03-27 15:06:43 -07:00
core_acl_flex_keys.h mlxsw: core_acl: Avoid defining static variable in header file 2020-03-27 15:06:43 -07:00
core_env.c mlxsw: Update module's settings when module is plugged in 2020-09-27 13:27:01 -07:00
core_env.h net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
core_hwmon.c mlxsw: core_hwmon: Query MTMP before writing to set only relevant fields 2020-09-27 13:27:00 -07:00
core_thermal.c thermal: Simplify or eliminate unnecessary set_mode() methods 2020-06-29 20:26:39 +02:00
emad.h mlxsw: core: Add EMAD string TLV 2019-11-12 10:54:02 -08:00
i2c.c mlxsw: i2c: Add missing field documentation 2020-03-27 15:06:43 -07:00
i2c.h
ib.h
item.h
minimal.c mlxsw: Set port split ability attribute in driver 2020-07-09 13:15:29 -07:00
pci.c net: mlx: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
pci.h mlxsw: spectrum: Extend to support Spectrum-3 ASIC 2019-08-08 22:27:09 -07:00
pci_hw.h mlxsw: pci: Add mirror reason field to CQEv2 2020-07-14 14:50:49 -07:00
port.h mlxsw: spectrum: Use PMTM register to get max module width 2019-10-31 10:54:46 -07:00
reg.h mlxsw: Make EtherType configurable when pushing VLAN at ingress 2020-12-01 15:21:12 -08:00
resources.h mlxsw: resources: Add resource identifier for global policers 2020-07-15 18:09:59 -07:00
spectrum.c mlxsw: Add QinQ configuration vetoes 2020-12-01 15:21:13 -08:00
spectrum.h mlxsw: spectrum_switchdev: Add support of QinQ traffic 2020-12-01 15:21:12 -08:00
spectrum1_acl_tcam.c
spectrum1_kvdl.c mlxsw: Replace zero-length array with flexible-array member 2020-02-19 16:23:10 -08:00
spectrum1_mr_tcam.c
spectrum2_acl_tcam.c mlxsw: Fix some IS_ERR() vs NULL bugs 2020-04-23 12:34:43 -07:00
spectrum2_kvdl.c mlxsw: Replace zero-length array with flexible-array member 2020-02-19 16:23:10 -08:00
spectrum2_mr_tcam.c mlxsw: spectrum: Rename acl_block to flow_block 2020-04-27 12:43:29 -07:00
spectrum_acl.c mlxsw: spectrum_acl: Offload FLOW_ACTION_POLICE 2020-07-15 18:10:00 -07:00
spectrum_acl_atcam.c
spectrum_acl_bloom_filter.c mlxsw: Replace zero-length array with flexible-array member 2020-02-19 16:23:10 -08:00
spectrum_acl_ctcam.c
spectrum_acl_erp.c
spectrum_acl_flex_actions.c mlxsw: spectrum_acl: Offload FLOW_ACTION_POLICE 2020-07-15 18:10:00 -07:00
spectrum_acl_flex_actions.h
spectrum_acl_flex_keys.c
spectrum_acl_tcam.c mlxsw: spectrum_acl: Fix mlxsw_sp_acl_tcam_group_add()'s error path 2020-09-27 13:22:31 -07:00
spectrum_acl_tcam.h mlxsw: spectrum_flower: Expose a function to get min and max rule priority 2020-05-09 16:02:43 -07:00
spectrum_buffers.c mlxsw: spectrum_buffers: Support two headroom modes 2020-09-17 17:01:38 -07:00
spectrum_cnt.c mlxsw: spectrum_cnt: Use flex_array_size() helper in memcpy() 2020-07-30 17:38:23 -07:00
spectrum_cnt.h mlxsw: spectrum_cnt: Expose subpool sizes over devlink resources 2020-03-18 16:46:19 -07:00
spectrum_dcb.c mlxsw: spectrum_dcb: Implement dcbnl_setbuffer / getbuffer 2020-09-17 17:01:38 -07:00
spectrum_dpipe.c mlxsw: spectrum_router: Add support for blackhole nexthops 2020-11-24 12:14:56 -08:00
spectrum_dpipe.h
spectrum_ethtool.c mlxsw: Only advertise link modes supported by both driver and device 2020-10-26 16:45:50 -07:00
spectrum_fid.c mlxsw: spectrum: Remove unused RIF and FID families 2020-03-27 15:06:43 -07:00
spectrum_flow.c mlxsw: spectrum_flow: Promote binder-type dispatch to spectrum.c 2020-07-13 17:22:22 -07:00
spectrum_flower.c mlxsw: spectrum_acl: Offload FLOW_ACTION_POLICE 2020-07-15 18:10:00 -07:00
spectrum_ipip.c mlxsw: spectrum_ipip: Remove overlay protocol from can_offload() callback 2020-11-14 16:55:04 -08:00
spectrum_ipip.h mlxsw: spectrum_ipip: Remove overlay protocol from can_offload() callback 2020-11-14 16:55:04 -08:00
spectrum_kvdl.c mlxsw: spectrum_kvdl: Protect allocations with a lock 2020-02-20 10:04:33 -08:00
spectrum_matchall.c mlxsw: spectrum_span: Allow setting policer on a SPAN agent 2020-07-14 14:50:49 -07:00
spectrum_mr.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2020-03-29 21:25:29 -07:00
spectrum_mr.h
spectrum_mr_tcam.c mlxsw: Fix some IS_ERR() vs NULL bugs 2020-04-23 12:34:43 -07:00
spectrum_mr_tcam.h
spectrum_nve.c mlxsw: spectrum_router: Store NVE decapsulation configuration in router 2020-02-22 21:24:51 -08:00
spectrum_nve.h mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled 2019-07-29 13:55:05 -07:00
spectrum_nve_vxlan.c mlxsw: spectrum_ptp: Increase parsing depth when PTP is enabled 2019-07-29 13:55:05 -07:00
spectrum_policer.c mlxsw: spectrum_policer: Add devlink resource support 2020-07-15 18:10:00 -07:00
spectrum_ptp.c mlxsw: spectrum_ptp: use PTP wide message type definitions 2020-11-25 12:23:14 -08:00
spectrum_ptp.h mlxsw: spectrum_ptp: use PTP wide message type definitions 2020-11-25 12:23:14 -08:00
spectrum_qdisc.c mlxsw: spectrum_qdisc: Disable port buffer autoresize with qdiscs 2020-09-17 17:01:38 -07:00
spectrum_router.c mlxsw: Add QinQ configuration vetoes 2020-12-01 15:21:13 -08:00
spectrum_router.h mlxsw: spectrum_router: Add support for blackhole nexthops 2020-11-24 12:14:56 -08:00
spectrum_span.c mlxsw: spectrum_buffers: Manage internal buffer in the hdroom code 2020-09-16 15:19:30 -07:00
spectrum_span.h mlxsw: spectrum_buffers: Manage internal buffer in the hdroom code 2020-09-16 15:19:30 -07:00
spectrum_switchdev.c mlxsw: Add QinQ configuration vetoes 2020-12-01 15:21:13 -08:00
spectrum_switchdev.h
spectrum_trap.c mlxsw: spectrum_trap: Add blackhole_nexthop trap 2020-11-24 12:14:56 -08:00
spectrum_trap.h mlxsw: spectrum_trap: Allow for per-ASIC traps initialization 2020-08-03 18:06:46 -07:00
switchib.c mlxsw: Set port split ability attribute in driver 2020-07-09 13:15:29 -07:00
switchx2.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
trap.h mlxsw: spectrum_router: Use different trap identifier for unresolved nexthops 2020-11-24 12:14:55 -08:00
txheader.h