stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch added to 3.12-stable] IB/mlx4: Set traffic class in AH
@ 2017-01-27 10:46 Jiri Slaby
  2017-01-27 10:46 ` [patch added to 3.12-stable] IB/mlx4: Fix port query for 56Gb Ethernet links Jiri Slaby
                   ` (61 more replies)
  0 siblings, 62 replies; 68+ messages in thread
From: Jiri Slaby @ 2017-01-27 10:46 UTC (permalink / raw)
  To: stable
  Cc: Maor Gottlieb, Daniel Jurgens, Leon Romanovsky, Doug Ledford,
	Jiri Slaby

From: Maor Gottlieb <maorg@mellanox.com>

This patch has been added to the 3.12 stable tree. If you have any
objections, please let us know.

===============

commit af4295c117b82a521b05d0daf39ce879d26e6cb1 upstream.

Set traffic class within sl_tclass_flowlabel when create iboe AH.
Without this the TOS value will be empty when running VLAN tagged
traffic, because the TOS value is taken from the traffic class in the
address handle attributes.

Fixes: 9106c4106974 ('IB/mlx4: Fix SL to 802.1Q priority-bits mapping for IBoE')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 drivers/infiniband/hw/mlx4/ah.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/ah.c b/drivers/infiniband/hw/mlx4/ah.c
index f55d69500a5f..3a85e7669068 100644
--- a/drivers/infiniband/hw/mlx4/ah.c
+++ b/drivers/infiniband/hw/mlx4/ah.c
@@ -118,7 +118,9 @@ static struct ib_ah *create_iboe_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr
 		       !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support))
 			--ah->av.eth.stat_rate;
 	}
-
+	ah->av.eth.sl_tclass_flowlabel |=
+			cpu_to_be32((ah_attr->grh.traffic_class << 20) |
+				    ah_attr->grh.flow_label);
 	/*
 	 * HW requires multicast LID so we just choose one.
 	 */
@@ -126,7 +128,7 @@ static struct ib_ah *create_iboe_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr
 		ah->av.ib.dlid = cpu_to_be16(0xc000);
 
 	memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16);
-	ah->av.eth.sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 29);
+	ah->av.eth.sl_tclass_flowlabel |= cpu_to_be32(ah_attr->sl << 29);
 
 	return &ah->ibah;
 }
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 68+ messages in thread

end of thread, other threads:[~2017-10-08 22:15 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-27 10:46 [patch added to 3.12-stable] IB/mlx4: Set traffic class in AH Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] IB/mlx4: Fix port query for 56Gb Ethernet links Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] perf scripting: Avoid leaking the scripting_context variable Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] ARM: dts: imx31: fix clock control module interrupts description Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] ARM: dts: imx31: move CCM device node to AIPS2 bus devices Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] ARM: dts: imx31: fix AVIC base address Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] x86/PCI: Ignore _CRS on Supermicro X8DTH-i/6/iF/6F Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] svcrpc: don't leak contexts on PROC_DESTROY Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] mmc: mxs-mmc: Fix additional cycles after transmission stop Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] mtd: nand: xway: disable module support Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] qla2xxx: Fix crash due to null pointer access Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] ubifs: Fix journal replay wrt. xattr nodes Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] clockevents/drivers/exynos_mct: Remove unneeded container_of() Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] clocksource/exynos_mct: Clear interrupt when cpu is shut down Jiri Slaby
2017-01-27 10:46 ` [patch added to 3.12-stable] ARM: 8634/1: hw_breakpoint: blacklist Scorpion CPUs Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] ARM: dts: da850-evm: fix read access to SPI flash Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] arm64/ptrace: Preserve previous registers for short regset write Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] arm64/ptrace: Avoid uninitialised struct padding in fpr_set() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] arm64/ptrace: Reject attempts to set incomplete hardware breakpoint fields Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] ite-cir: initialize use_demodulator before using it Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] posix_acl: Clear SGID bit when setting file permissions Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] vmxnet3: Wake queue from reset work Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] fs/cifs: make share unaccessible at root level mountable Jiri Slaby
2017-01-31 10:54   ` Aurélien Aptel
2017-01-31 10:55     ` Jiri Slaby
2017-10-08 22:15     ` Ben Hutchings
2017-01-27 10:47 ` [patch added to 3.12-stable] Fix memory leaks in cifs_do_mount() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] Compare prepaths when comparing superblocks Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] Move check for prefix path to within cifs_get_root() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] Fix regression which breaks DFS mounting Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix refcount bug in profile replacement Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix replacement bug that adds new child to old parent Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix uninitialized lsm_audit member Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: exec should not be returning ENOENT when it denies Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix update the mtime of the profile file on replacement Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix disconnected bind mnts reconnection Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: internal paths should be treated as disconnected Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix put() parent ref after updating the active ref Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix log failures for all profiles in a set Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix audit full profile hname on successful load Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: ensure the target profile name is always audited Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: check that xindex is in trans_table bounds Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix refcount race when finding a child profile Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: add missing id bounds check on dfa verification Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: don't check for vmalloc_addr if kvzalloc() failed Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix oops in profile_unpack() when policy_db is not present Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix module parameters can be changed after policy is locked Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: do not expose kernel stack Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix oops, validate buffer size in apparmor_setprocattr() Jiri Slaby
2017-01-27 10:54   ` Vegard Nossum
2017-01-27 12:16     ` Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] apparmor: fix arg_size computation for when setprocattr is null terminated Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] vfio/pci: Fix integer overflows, bitmask check Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] bna: Add synchronization for tx ring Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] [media] xc2028: avoid use after free Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] [media] xc2028: unlock on error in xc2028_set_config() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] block: fix use-after-free in sys_ioprio_get() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] xc2028: Fix use-after-free bug properly Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] sg: Fix double-free when drives detach during SG_IO Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] fuse: do not use iocb after it may have been freed Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] move the call of __d_drop(anon) into __d_materialise_unique(dentry, anon) Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] x86/apic: Order irq_enter/exit() calls correctly vs. ack_APIC_irq() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] serial: 8250_pci: Detach low-level driver during PCI error recovery Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] bnx2x: Correct ringparam estimate when DOWN Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] ocfs2: fix BUG_ON() in ocfs2_ci_checkpointed() Jiri Slaby
2017-01-27 10:47 ` [patch added to 3.12-stable] tmpfs: clear S_ISGID when setting posix ACLs Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).