Skip to content

Commit 950f1ba

Browse files
SunilKumarKorikmonendra
authored andcommitted
dev: fix max ethernet size issue for VFs
When user provides maximum ethernet size more than supported size then initially it gets stored in a u32 variable which is further copied to u16 variable. Due to this conversion maximum input value truncated to 0. This trunctation leads to failure in later stage. Type: fix JIRA: https://essjira.marvell.com/browse/IPBUSW-62958 Signed-off-by: Sunil Kumar Kori <[email protected]> Change-Id: Id7d7fe1890129ed0de9adb1ae035e848cc9098f5 Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/toolkits/vpp/+/147519 Reviewed-by: Nithin Kumar Dabilpuram <[email protected]> Tested-by: sa_ip-toolkits-Jenkins <[email protected]> (cherry picked from commit aded3e60710c9fec40925cbee9cb123fc7f5dd2e) Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/toolkits/vpp/+/147615 Reviewed-by: Monendra Singh Kushwaha <[email protected]> Tested-by: Monendra Singh Kushwaha <[email protected]>
1 parent 17482d5 commit 950f1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vnet/dev/dev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ typedef struct vnet_dev_port_cfg_change_req
170170
{
171171
u8 promisc : 1;
172172
vnet_dev_hw_addr_t addr;
173-
u16 max_rx_frame_size;
173+
u32 max_rx_frame_size;
174174
vnet_dev_queue_id_t queue_id;
175175
struct
176176
{

0 commit comments

Comments
 (0)