Tell the kernel our MAX_MTU rather than using CANFD_MTU directly

pull/10/head
Paul Hollinsky 2019-08-27 13:54:34 -04:00
parent 408459cbe2
commit 6c061d771e
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ static int intrepid_add_can_if(struct intrepid_netdevice **result, const char *r
dev->base_addr = i; dev->base_addr = i;
dev->flags |= IFF_ECHO; dev->flags |= IFF_ECHO;
dev->min_mtu = CAN_MTU; 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->mtu = CANFD_MTU; /* TODO: Check CAN-FD support from usermode daemon */
dev->netdev_ops = &intrepid_netdevice_ops; dev->netdev_ops = &intrepid_netdevice_ops;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)