avf: actually delete ethernet address if deletion was requested 77/29877/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 11 Nov 2020 10:58:32 +0000 (10:58 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 13 Nov 2020 15:49:50 +0000 (15:49 +0000)
fixes the coverity issue 214893.

Type: fix
Fixes: 1ab533cba2202e73c2296d7677d0b335f2afad7b
Change-Id: I1159f5e23d1cdfcf6575c29d11e884703afee20f
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/avf/device.c

index 1cedc35..6f0df6d 100644 (file)
@@ -767,7 +767,7 @@ avf_op_add_del_eth_addr (vlib_main_t * vm, avf_device_t * ad, u8 count,
                     format_ethernet_address, &al->list[i].addr);
     }
   return avf_send_to_pf (vm, ad, is_add ? VIRTCHNL_OP_ADD_ETH_ADDR :
-                        VIRTCHNL_OP_ADD_ETH_ADDR, msg, msg_len, 0, 0);
+                        VIRTCHNL_OP_DEL_ETH_ADDR, msg, msg_len, 0, 0);
 }
 
 clib_error_t *