diff options
author | Sjur Braendeland <sjur.brandeland@stericsson.com> | 2010-06-17 02:55:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-20 22:46:06 -0400 |
commit | 2aa40aef9debc77d55cc87a50d335b6fe97fbeb0 (patch) | |
tree | 0dccf47cf6cb861c7efa72601fab9511760c7e74 /drivers/net/caif | |
parent | a7da1f55a826c621251874e7684c234972fc3216 (diff) |
caif: Use link layer MTU instead of fixed MTU
Previously CAIF supported maximum transfer size of ~4050.
The transfer size is now calculated dynamically based on the
link layers mtu size.
Signed-off-by: Sjur Braendeland@stericsson.com
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/caif')
-rw-r--r-- | drivers/net/caif/caif_serial.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c index 3e706f00a0d3..3df0c0f8b8bf 100644 --- a/drivers/net/caif/caif_serial.c +++ b/drivers/net/caif/caif_serial.c | |||
@@ -403,7 +403,6 @@ static void caifdev_setup(struct net_device *dev) | |||
403 | dev->type = ARPHRD_CAIF; | 403 | dev->type = ARPHRD_CAIF; |
404 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; | 404 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; |
405 | dev->mtu = CAIF_MAX_MTU; | 405 | dev->mtu = CAIF_MAX_MTU; |
406 | dev->hard_header_len = CAIF_NEEDED_HEADROOM; | ||
407 | dev->tx_queue_len = 0; | 406 | dev->tx_queue_len = 0; |
408 | dev->destructor = free_netdev; | 407 | dev->destructor = free_netdev; |
409 | skb_queue_head_init(&serdev->head); | 408 | skb_queue_head_init(&serdev->head); |