bitkeeper revision 1.1159.168.5 (41962ce3XTE0Rv_fvLiNwsSsvTfxUA)

Makes packet-size checks in netback driver less conservative. Allows e.g.,
PPPoE to work.
This commit is contained in:
kaf24@freefall.cl.cam.ac.uk committed 2004-11-13 15:48:51 +00:00
1 parent 491971c6fe
commit a8056c42f6
1 file changed
+1 -2
@@ -41,7 +41,6 @@ static unsigned char rx_notify[NR_EVENT_CHANNELS];
static unsigned long mmap_vstart;
#define MMAP_VADDR(_req) (mmap_vstart + ((_req) * PAGE_SIZE))
#define PKT_MIN_LEN (ETH_HLEN + 20)
#define PKT_PROT_LEN 64
static struct {
@@ -500,7 +499,7 @@ static void net_tx_action(unsigned long unused)
netif_schedule_work(netif);
if ( unlikely(txreq.size <= PKT_MIN_LEN) ||
if ( unlikely(txreq.size < ETH_HLEN) ||
unlikely(txreq.size > ETH_FRAME_LEN) )
{
DPRINTK("Bad packet size: %d\n", txreq.size);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.