[eepro100] mtu > 1500 packet ?
sysadm@CHS.twbbs.org
sysadm@CHS.twbbs.org
Thu, 16 Nov 2000 00:32:06 +0800 (CST)
Does anybody know that can eepro100 (intel 8255x) NIC handle packet
size > 1500?
i am trying to send packet > 1500 bytes for my special case. I don't need
to compatible with other system. I am using linux kernel 2.2.17.
i have changed the mtu to 1600 in driver/net/net_init.c but it doesn't
work. The packet doesn't be sent out after dev_queue_xmit(skb).
here is my code:
void send_big_frame()
{
struct sk_buff *skb2;
skb2=alloc_skb( 1536,GFP_ATOMIC );
skb2->mac.raw = skb2->h.raw = skb2->nh.raw = skb2->data;
memcpy(skb2->mac.ethernet->h_dest , dstmac , 6);
memcpy(skb2->mac.ethernet->h_source,srcmac , 6);
skb2->mac.ethernet->h_proto = htons(0x0808);
dev_queue_xmit(skb2);
}
eth0 Link encap:Ethernet HWaddr 00:AF:00:00:01:45
inet addr:140.113.216.10 Bcast:140.113.216.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1600 Metric:1
RX packets:231837 errors:0 dropped:0 overruns:0 frame:0
TX packets:20571 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:12 Base address:0xe800