]> git.droids-corp.org - dpdk.git/commit
net/bnxt: disallow MTU change when device is started
authorDamodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Wed, 15 Jun 2022 14:57:01 +0000 (20:27 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 24 Jun 2022 21:24:14 +0000 (23:24 +0200)
commita42ab1eb33ff4d9358e746782365d7de0b1ed98b
tree44df10c5279f4c62b0062223d173f46476686ba4
parentd9ae3e9d53253418e2f9f97b19849c0a625159ed
net/bnxt: disallow MTU change when device is started

With this patch, bnxt_mtu_set_op() will return an error code if the
device has already started. The user application will have to take
care to bring down device before invoking the mtu_set()

Fixes: daef48efe5e5 ("net/bnxt: support set MTU")
Cc: stable@dpdk.org
Signed-off-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c