net: thunderx: add nicvf_send_msg_to_pf result check for set_rx_mode_task
authorVadim Lomovtsev <vlomovtsev@marvell.com>
Wed, 20 Feb 2019 11:02:44 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 19:43:44 +0000 (11:43 -0800)
commit7db730d9d2f7b6af6aeac621b1890ea477a0cb8d
treeec2f077791ab6106b60f5801c40f8e2e03637143
parent0dd563b9a62c4cbabf5d4fd6596440c2491e72b1
net: thunderx: add nicvf_send_msg_to_pf result check for set_rx_mode_task

The rx_set_mode invokes number of messages to be send to PF for receive
mode configuration. In case if there any issues we need to stop sending
messages and release allocated memory.

This commit is to implement check of nicvf_msg_send_to_pf() result.

Signed-off-by: Vadim Lomovtsev <vlomovtsev@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c