pdump: initialize snaplen if enabled by device id
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 pdump: initialize snaplen if enabled by device id
If packet dump was enabled via pdump_enable_by_deviceid the packet snapshot length was not being set.
Bugzilla ID: 840
Fixes 10f726efe26c ("pdump: support pcapng and filtering")
Signed-off-by Stephen Hemminger <[email protected]>
--- lib/pdump/rte_pdump.c | 3 +++ 1 file changed, 3 insertions(+)
lib/pdump/rte_pdump.c +3 -0
@@ -631,6 +631,9 @@ pdump_enable_by_deviceid(const char *device_id, uint16_t queue,if (ret <0 )return ret; +if (snaplen ==0 ) + snaplen =UINT32_MAX ; +return pdump_prepare_client_request (device_id, queue, flags, snaplen,ENABLE , ring, mp, prm); }
Signature · 1 line
2.30.2
Quoted 16 lines · On Wed, 27 Oct 2021 11:08:47 -0700 Stephen Hemminger…
If packet dump was enabled via
pdump_enable_by_deviceidthe packet snapshot length was not being set.Bugzilla ID: 840
Fixes 10f726efe26c ("pdump: support pcapng and filtering")Signed-off-by Stephen Hemminger <[email protected]>--- lib/pdump/rte_pdump.c | 3 +++ 1 file changed, 3 insertions(+)lib/pdump/rte_pdump.c +0
-0
lib/pdump/rte_pdump.c pdump_enable_by_deviceid(const char *device_id, uint16_t queue, · line 639
Quoted 9 lines
lib/pdump/rte_pdump.c +3
-0@@ -631,6 +631,9 @@ pdump_enable_by_deviceid(const char *device_id, uint16_t queue,if (ret <0 )return ret; +if (snaplen ==0 ) + snaplen =UINT32_MAX ; +return pdump_prepare_client_request (device_id, queue, flags, snaplen,ENABLE , ring, mp, prm); }
There appears to be bug in the CI system reporting bogus failure on this patch.
Thomas Monjalon
Applied27/10/2021 20:08, Stephen Hemminger:
Quoted 7 lines
If packet dump was enabled via
pdump_enable_by_deviceidthe packet snapshot length was not being set.Bugzilla ID: 840
Fixes 10f726efe26c ("pdump: support pcapng and filtering")Signed-off-by Stephen Hemminger <[email protected]>
Applied, thanks.