Changeset 20759


Ignore:
Timestamp:
2010-04-09T14:06:00+02:00 (7 years ago)
Author:
juhosg
Message:

backfire: ar71xx: ag71xx: call the phy driver's netif_receive_skb() (backport of r20750)

Ag71xx needs to call the phy's netif_receive_skb() to allow phy drivers
to mangle rx packets. This patch fixes it.

This fixes the header mangling of the AR8216 driver.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

Location:
branches/backfire/target/linux/ar71xx/files/drivers/net/ag71xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r20677 r20759  
    3939 
    4040#define AG71XX_DRV_NAME         "ag71xx" 
    41 #define AG71XX_DRV_VERSION      "0.5.33" 
     41#define AG71XX_DRV_VERSION      "0.5.34" 
    4242 
    4343#define AG71XX_NAPI_WEIGHT      64 
  • branches/backfire/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

    r20677 r20759  
    827827                        skb->dev = dev; 
    828828                        skb->ip_summed = CHECKSUM_NONE; 
    829                         skb->protocol = eth_type_trans(skb, dev); 
    830                         netif_receive_skb(skb); 
     829                        if (ag->phy_dev) { 
     830                                ag->phy_dev->netif_receive_skb(skb); 
     831                        } else { 
     832                                skb->protocol = eth_type_trans(skb, dev); 
     833                                netif_receive_skb(skb); 
     834                        } 
    831835                } 
    832836 
Note: See TracChangeset for help on using the changeset viewer.