aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_cm.h
diff options
context:
space:
mode:
authorShiraz Saleem <shiraz.saleem@intel.com>2016-11-30 15:09:34 -0600
committerDoug Ledford <dledford@redhat.com>2016-12-05 16:09:42 -0500
commit7eb2bde7f3900f044ab351e450adc41623ff2f5c (patch)
treec0f35e2aa261c9f036b7712c1c686d9bd1e40063 /drivers/infiniband/hw/i40iw/i40iw_cm.h
parenti40iw: Add NULL check for ibqp event handler (diff)
downloadlinux-dev-7eb2bde7f3900f044ab351e450adc41623ff2f5c.tar.xz
linux-dev-7eb2bde7f3900f044ab351e450adc41623ff2f5c.zip
i40iw: Set TOS field in IP header
Set the TOS field in IP header with the value passed in from application. If there is mismatch between the remote client's TOS and listener, set the listener Tos to the higher of the two values. Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Faisal Latif <faisal.latif@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_cm.h')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_cm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.h b/drivers/infiniband/hw/i40iw/i40iw_cm.h
index 49ed7a52a84d..2e52e38ffcf3 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_cm.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_cm.h
@@ -297,6 +297,7 @@ struct i40iw_cm_listener {
enum i40iw_cm_listener_state listener_state;
u32 reused_node;
u8 user_pri;
+ u8 tos;
u16 vlan_id;
bool qhash_set;
bool ipv4;
@@ -343,6 +344,7 @@ struct i40iw_cm_node {
atomic_t passive_state;
bool qhash_set;
u8 user_pri;
+ u8 tos;
bool ipv4;
bool snd_mark_en;
u16 lsmm_size;
@@ -368,6 +370,7 @@ struct i40iw_cm_info {
u16 vlan_id;
int backlog;
u8 user_pri;
+ u8 tos;
bool ipv4;
};