net/failsafe: fix source port id in Rx packets
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 18 Apr 2019 17:20:55 +0000 (19:20 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:55 +0000 (14:51 +0200)
commit98e91784d918f0575c9c74f5fdfd7602c3c9cc92
treed42ff7be5a77608274b4f9fedff677b0e96cc6ff
parent998853bf12f8c6390ff8d0190e1151872c37266f
net/failsafe: fix source port id in Rx packets

When passed to the application, Rx packets retain the port ID value
originally set by slave devices. Unfortunately these IDs have no
meaning to applications, which are typically unaware of their existence.

This confuses those caring about the source port field in mbufs
(m->port) which experience issues ranging from traffic drop to crashes.

Fixes: a46f8d584eb8 ("net/failsafe: add fail-safe PMD")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_rxtx.c