mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
can: Unify MTU settings for CAN interfaces
CAN interfaces only support MTU values of 16 (CAN 2.0) and 72 (CAN FD). Setting the MTU to other values is pointless but it does not really hurt. With the introduction of the CAN FD support in drivers/net/can a new function to switch the MTU for CAN FD has been introduced. This patch makes use of this can_change_mtu() function to check for correct MTU settings also in legacy CAN (2.0) devices. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
e7ef085d0a
commit
c971fa2ae4
19 changed files with 30 additions and 6 deletions
|
@ -887,6 +887,7 @@ static const struct net_device_ops usb_8dev_netdev_ops = {
|
|||
.ndo_open = usb_8dev_open,
|
||||
.ndo_stop = usb_8dev_close,
|
||||
.ndo_start_xmit = usb_8dev_start_xmit,
|
||||
.ndo_change_mtu = can_change_mtu,
|
||||
};
|
||||
|
||||
static const struct can_bittiming_const usb_8dev_bittiming_const = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue