MTU assigning to itself (Coverity) 00/13000/1
authorOle Troan <ot@cisco.com>
Tue, 12 Jun 2018 09:39:15 +0000 (11:39 +0200)
committerOle Troan <ot@cisco.com>
Tue, 12 Jun 2018 09:40:18 +0000 (11:40 +0200)
Change-Id: Iee8de25ab3c68ae3698c79852195dc336050914c
Signed-off-by: Ole Troan <ot@cisco.com>
src/plugins/dpdk/device/init.c

index 461bae0..66678e6 100644 (file)
@@ -1678,10 +1678,6 @@ dpdk_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f)
                        clib_memcpy (shi->hw_address, addr, 6);
                        clib_memcpy (sei->address, addr, 6);
                        /* Set l3 packet size allowed as the lowest of slave */
-                       if (bhi->max_packet_bytes > shi->max_packet_bytes)
-                         bhi->max_packet_bytes = bhi->max_packet_bytes;
-
-                       /* Set max packet size allowed as the lowest of slave */
                        if (bhi->max_packet_bytes > shi->max_packet_bytes)
                          bhi->max_packet_bytes = shi->max_packet_bytes;
                      }