numam-dpdk/drivers/net
Michael Baum 4868ae8322 net/mlx5: fix initialization of steering registers
The mlx5_flow_action_copy_mreg structure contains a field called src
type enum modify_reg, similarly the mlx5_rte_flow_item_tag field
contains a field called id type enum modify_reg.
The enum modify_reg variable represents different registers in the
system and it also has a field called REG_NONE whose value is 0 which
means that the register does not exist.

The flow_mreg_add_copy_action function sets a variable of struct
mlx5_flow_action_copy_mreg type, and initializes the src field to be 0.
Similarly the flow_create_split_metadata function sets a variable of
struct mlx5_rte_flow_item_tag type and initializes the id field to be 0.
In both functions, they initialize a enum modify_reg type variable with
an int type value while modify_reg has an appropriate field for that
value (REG_NONE).

Replace assigning 0 with REG_NONE in both functions.

Fixes: dd3c774f6f ("net/mlx5: add metadata register copy table")
Fixes: 71e254bc02 ("net/mlx5: split Rx flows to provide metadata copy")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-07-30 00:41:23 +02:00
..
af_packet net/af_packet: fix munmap on init failure 2020-07-17 18:21:21 +02:00
af_xdp log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
ark log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
atlantic drivers/net: fix exposing internal headers 2020-07-11 06:18:54 +02:00
avp log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
axgbe log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
bnx2x log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
bnxt net/bnxt: support exact match templates 2020-07-21 13:54:54 +02:00
bonding net/bonding: change state machine to defaulted 2020-07-21 13:54:54 +02:00
cxgbe log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
dpaa net/dpaa: support queue info routines 2020-07-21 13:54:54 +02:00
dpaa2 net/dpaa2: support queue info routines 2020-07-21 13:54:54 +02:00
e1000 net/e1000: fix crash on Tx done clean up 2020-07-21 13:54:54 +02:00
ena log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
enetc log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
enic net/enic: support burst mode info 2020-07-11 06:18:53 +02:00
failsafe log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
fm10k ethdev: fix VLAN offloads set if no relative capabilities 2020-07-11 06:18:53 +02:00
hinic net/hinic/base: convert error value to ETIMEDOUT 2020-07-11 06:18:53 +02:00
hns3 net/hns3: fix RSS configuration on empty RSS type 2020-07-17 18:21:21 +02:00
i40e net/i40e: report VLAN filter capability 2020-07-21 13:54:54 +02:00
iavf net/iavf: fix GTPU L4 hash 2020-07-21 13:54:54 +02:00
ice net/ice: fix bytes statistics 2020-07-30 00:41:22 +02:00
igc log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
ionic log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
ipn3ke log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
ixgbe net/ixgbe: fix flow control status 2020-07-21 13:54:54 +02:00
kni log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
liquidio log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
memif log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
mlx4 log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
mlx5 net/mlx5: fix initialization of steering registers 2020-07-30 00:41:23 +02:00
mvneta log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
mvpp2 log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
netvsc net/netvsc: detach external buffer on failure 2020-07-11 06:18:53 +02:00
nfb net/nfb: check array size before access 2020-04-21 13:57:06 +02:00
nfp net/nfp: fix RSS hash configuration reporting 2020-07-11 06:18:54 +02:00
null log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
octeontx ethdev: fix VLAN offloads set if no relative capabilities 2020-07-11 06:18:53 +02:00
octeontx2 net/octeontx2: free CQ ring memzone on queue release 2020-07-21 16:04:06 +02:00
pcap log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
pfe log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
qede ethdev: fix VLAN offloads set if no relative capabilities 2020-07-11 06:18:53 +02:00
ring log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
sfc net/sfc: do not enforce hash offload in RSS multi-queue 2020-07-21 18:13:45 +02:00
softnic log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
szedata2 log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
tap log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
thunderx log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
vdev_netvsc log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
vhost net/vhost: support queue update 2020-07-21 19:03:24 +02:00
virtio net/virtio-user: fix uninitialized reply-ack variable 2020-07-17 18:21:21 +02:00
vmxnet3 log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
Makefile net/igc: add skeleton 2020-04-21 13:57:07 +02:00
meson.build bus/pci: introduce Windows support with stubs 2020-06-30 00:02:54 +02:00