Skip to content

Commit c672297

Browse files
rtylxanguy11
authored andcommitted
i40e: fix flow director packet filter programming
Initialize to zero structures to build a valid Tx Packet used for the filter programming. Fixes: a9219b3 ("i40e: VLAN field for flow director") Signed-off-by: Radoslaw Tyl <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Tested-by: Arpana Arland <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent 4e264be commit c672297

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/intel/i40e/i40e_txrx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ static char *i40e_create_dummy_packet(u8 *dummy_packet, bool ipv4, u8 l4proto,
171171
struct i40e_fdir_filter *data)
172172
{
173173
bool is_vlan = !!data->vlan_tag;
174-
struct vlan_hdr vlan;
175-
struct ipv6hdr ipv6;
176-
struct ethhdr eth;
177-
struct iphdr ip;
174+
struct vlan_hdr vlan = {};
175+
struct ipv6hdr ipv6 = {};
176+
struct ethhdr eth = {};
177+
struct iphdr ip = {};
178178
u8 *tmp;
179179

180180
if (ipv4) {

0 commit comments

Comments
 (0)