mirror of
https://github.com/intrepidcs/intrepid-socketcan-kernel-module.git
synced 2026-08-05 01:18:37 +02:00
Tell the kernel our MAX_MTU rather than using CANFD_MTU directly
This commit is contained in:
+1
-1
@@ -346,7 +346,7 @@ static int intrepid_add_can_if(struct intrepid_netdevice **result, const char *r
|
||||
dev->base_addr = i;
|
||||
dev->flags |= IFF_ECHO;
|
||||
dev->min_mtu = CAN_MTU;
|
||||
dev->max_mtu = CANFD_MTU;
|
||||
dev->max_mtu = MAX_MTU;
|
||||
dev->mtu = CANFD_MTU; /* TODO: Check CAN-FD support from usermode daemon */
|
||||
dev->netdev_ops = &intrepid_netdevice_ops;
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)
|
||||
|
||||
Reference in New Issue
Block a user