On 10/12/2019 1:18 PM, Ting Xu wrote: > This patch fixed the bug that an error appears when config rx_offload > crc_strip using command "port config all crc-strip on|off". The reason > is that this command was removed previously. However, the current command > does not enable "crc_strip" option properly, so that testpmd returns > error when config crc_strip.
"port config all crc-strip ..." is already removed, Commit e5db17a1e54e ("app/testpmd: remove duplicated Rx offload commands") And 'crc_strip' seems left over for the "port config <id> rx_offload ..." command, instead of fixing it should be removed, and 'keep_crc' should be used, "port config <id> rx_offload keep_crc on|off" Did you observe any problem on 'keep_crc' ? > > In this patch, an additional operation is added to recognize "crc_strip" > option, since "crc_strip" and "keep_crc" are using the same flag > "DEV_RX_OFFLOAD_KEEP_CRC". The current command is "port config > <port_id> rx_offload crc_strip on|off". > > Fixes: e5db17a1e54e ("app/testpmd: remove duplicated Rx offload commands") > Cc: sta...@dpdk.org > > Signed-off-by: Ting Xu <ting...@intel.com> <...>