aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/avf
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2020-11-11 10:58:32 +0000
committerMatthew Smith <mgsmith@netgate.com>2020-11-13 15:49:50 +0000
commitfba2732ec887aca516a6412bdb4e35397e81a0cc (patch)
treef1907237c7c5169fb25535e763ed5a8da7e517bd /src/plugins/avf
parent66d10589f412d11841c4c8adc0a498b5527e88cb (diff)
avf: actually delete ethernet address if deletion was requested
fixes the coverity issue 214893. Type: fix Fixes: 1ab533cba2202e73c2296d7677d0b335f2afad7b Change-Id: I1159f5e23d1cdfcf6575c29d11e884703afee20f Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins/avf')
-rw-r--r--src/plugins/avf/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c
index 1cedc35db9b..6f0df6dc1a9 100644
--- a/src/plugins/avf/device.c
+++ b/src/plugins/avf/device.c
@@ -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 *