mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
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);
|
||||
|
||||