i40e/i40evf: initialize context descriptor
Driver needs to initialize all members of context descriptor. Stale data is possible otherwise. Change-ID: Idc6b53af45583509da42d5ec0824cbaf78aee64f Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Родитель
b814ba65fc
Коммит
3efbbb202b
|
@ -1991,6 +1991,7 @@ static void i40e_create_tx_ctx(struct i40e_ring *tx_ring,
|
|||
/* cpu_to_le32 and assign to struct fields */
|
||||
context_desc->tunneling_params = cpu_to_le32(cd_tunneling);
|
||||
context_desc->l2tag2 = cpu_to_le16(cd_l2tag2);
|
||||
context_desc->rsvd = cpu_to_le16(0);
|
||||
context_desc->type_cmd_tso_mss = cpu_to_le64(cd_type_cmd_tso_mss);
|
||||
}
|
||||
|
||||
|
|
|
@ -1336,6 +1336,7 @@ static void i40e_create_tx_ctx(struct i40e_ring *tx_ring,
|
|||
/* cpu_to_le32 and assign to struct fields */
|
||||
context_desc->tunneling_params = cpu_to_le32(cd_tunneling);
|
||||
context_desc->l2tag2 = cpu_to_le16(cd_l2tag2);
|
||||
context_desc->rsvd = cpu_to_le16(0);
|
||||
context_desc->type_cmd_tso_mss = cpu_to_le64(cd_type_cmd_tso_mss);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче