diff options
author | Damjan Marion <damarion@cisco.com> | 2020-10-07 20:59:07 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-10-08 10:21:54 +0000 |
commit | eabd4249826259d2221ed339ea4bbe9e7bf7560e (patch) | |
tree | 222f7f5bce0f994f3da63bf8622667816e1b4497 /src/vnet/interface_api.c | |
parent | 9c9490cee8aba658ad2fef06305461cbaaaec1a1 (diff) |
interface: shorten vnet_hw_if_rx_mode
This is part of bigger refactor.
Type: refactor
Change-Id: I6fc2c0a1e2d217a70952901bcf775b8485bd3c20
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/interface_api.c')
-rw-r--r-- | src/vnet/interface_api.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index f8056c28bfe..51555cabc6b 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -1006,7 +1006,7 @@ static void vl_api_sw_interface_set_rx_mode_t_handler vnet_sw_interface_t *si; clib_error_t *error; int rv = 0; - vnet_hw_interface_rx_mode rx_mode; + vnet_hw_if_rx_mode rx_mode; VALIDATE_SW_IF_INDEX (mp); @@ -1017,12 +1017,11 @@ static void vl_api_sw_interface_set_rx_mode_t_handler goto bad_sw_if_index; } - rx_mode = (vnet_hw_interface_rx_mode) ntohl (mp->mode); + rx_mode = (vnet_hw_if_rx_mode) ntohl (mp->mode); error = set_hw_interface_change_rx_mode (vnm, si->hw_if_index, mp->queue_id_valid, ntohl (mp->queue_id), - (vnet_hw_interface_rx_mode) - rx_mode); + (vnet_hw_if_rx_mode) rx_mode); if (error) { |