Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277568
b: refs/heads/master
c: ef9b965
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Kirsher committed Nov 16, 2011
1 parent 214ca8e commit d046f06
Show file tree
Hide file tree
Showing 109 changed files with 1,054 additions and 1,010 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 358b838291f618278080bbed435b755f9b46748e
refs/heads/master: ef9b965a1c4ebd0f0ee961dbc328e1222dc8f487
2 changes: 1 addition & 1 deletion trunk/drivers/ieee802154/fakehard.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static void ieee802154_fake_setup(struct net_device *dev)
{
dev->addr_len = IEEE802154_ADDR_LEN;
memset(dev->broadcast, 0xff, IEEE802154_ADDR_LEN);
dev->features = NETIF_F_HW_CSUM;
dev->features = NETIF_F_NO_CSUM;
dev->needed_tailroom = 2; /* FCS */
dev->mtu = 127;
dev->tx_queue_len = 10;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/hw/nes/nes_nic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,7 @@ static const struct ethtool_ops nes_ethtool_ops = {
.set_pauseparam = nes_netdev_set_pauseparam,
};

static void nes_vlan_mode(struct net_device *netdev, struct nes_device *nesdev, netdev_features_t features)
static void nes_vlan_mode(struct net_device *netdev, struct nes_device *nesdev, u32 features)
{
struct nes_adapter *nesadapter = nesdev->nesadapter;
u32 u32temp;
Expand All @@ -1610,7 +1610,7 @@ static void nes_vlan_mode(struct net_device *netdev, struct nes_device *nesdev,
spin_unlock_irqrestore(&nesadapter->phy_lock, flags);
}

static netdev_features_t nes_fix_features(struct net_device *netdev, netdev_features_t features)
static u32 nes_fix_features(struct net_device *netdev, u32 features)
{
/*
* Since there is no support for separate rx/tx vlan accel
Expand All @@ -1624,7 +1624,7 @@ static netdev_features_t nes_fix_features(struct net_device *netdev, netdev_feat
return features;
}

static int nes_set_features(struct net_device *netdev, netdev_features_t features)
static int nes_set_features(struct net_device *netdev, u32 features)
{
struct nes_vnic *nesvnic = netdev_priv(netdev);
struct nes_device *nesdev = nesvnic->nesdev;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/ulp/ipoib/ipoib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static int ipoib_stop(struct net_device *dev)
return 0;
}

static netdev_features_t ipoib_fix_features(struct net_device *dev, netdev_features_t features)
static u32 ipoib_fix_features(struct net_device *dev, u32 features)
{
struct ipoib_dev_priv *priv = netdev_priv(dev);

Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/lguest/lguest_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,6 @@ static int lg_find_vqs(struct virtio_device *vdev, unsigned nvqs,
return PTR_ERR(vqs[i]);
}

static const char *lg_bus_name(struct virtio_device *vdev)
{
return "";
}

/* The ops structure which hooks everything together. */
static struct virtio_config_ops lguest_config_ops = {
.get_features = lg_get_features,
Expand All @@ -397,7 +392,6 @@ static struct virtio_config_ops lguest_config_ops = {
.reset = lg_reset,
.find_vqs = lg_find_vqs,
.del_vqs = lg_del_vqs,
.bus_name = lg_bus_name,
};

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/misc/sgi-xp/xpnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ xpnet_init(void)
* report an error if the data is not retrievable and the
* packet will be dropped.
*/
xpnet_device->features = NETIF_F_HW_CSUM;
xpnet_device->features = NETIF_F_NO_CSUM;

result = register_netdev(xpnet_device);
if (result != 0) {
Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,12 +1325,11 @@ static int bond_sethwaddr(struct net_device *bond_dev,
return 0;
}

static netdev_features_t bond_fix_features(struct net_device *dev,
netdev_features_t features)
static u32 bond_fix_features(struct net_device *dev, u32 features)
{
struct slave *slave;
struct bonding *bond = netdev_priv(dev);
netdev_features_t mask;
u32 mask;
int i;

read_lock(&bond->lock);
Expand Down Expand Up @@ -1364,7 +1363,7 @@ static void bond_compute_features(struct bonding *bond)
{
struct slave *slave;
struct net_device *bond_dev = bond->dev;
netdev_features_t vlan_features = BOND_VLAN_FEATURES;
u32 vlan_features = BOND_VLAN_FEATURES;
unsigned short max_hard_header_len = ETH_HLEN;
int i;

Expand Down Expand Up @@ -1898,7 +1897,7 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)
struct bonding *bond = netdev_priv(bond_dev);
struct slave *slave, *oldcurrent;
struct sockaddr addr;
netdev_features_t old_features = bond_dev->features;
u32 old_features = bond_dev->features;

/* slave is not a slave or master is not master of this slave */
if (!(slave_dev->flags & IFF_SLAVE) ||
Expand Down Expand Up @@ -4361,7 +4360,7 @@ static void bond_setup(struct net_device *bond_dev)
NETIF_F_HW_VLAN_RX |
NETIF_F_HW_VLAN_FILTER;

bond_dev->hw_features &= ~(NETIF_F_ALL_CSUM & ~NETIF_F_HW_CSUM);
bond_dev->hw_features &= ~(NETIF_F_ALL_CSUM & ~NETIF_F_NO_CSUM);
bond_dev->features |= bond_dev->hw_features;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/can/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ static void can_setup(struct net_device *dev)

/* New-style flags. */
dev->flags = IFF_NOARP;
dev->features = NETIF_F_HW_CSUM;
dev->features = NETIF_F_NO_CSUM;
}

struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/can/slcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ static void slc_setup(struct net_device *dev)

/* New-style flags. */
dev->flags = IFF_NOARP;
dev->features = NETIF_F_HW_CSUM;
dev->features = NETIF_F_NO_CSUM;
}

/******************************************
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void dummy_setup(struct net_device *dev)
dev->flags |= IFF_NOARP;
dev->flags &= ~IFF_MULTICAST;
dev->features |= NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_TSO;
dev->features |= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX;
dev->features |= NETIF_F_NO_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX;
random_ether_addr(dev->dev_addr);
}

Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/net/ethernet/amd/nmclan_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,9 @@ static int mace_close(struct net_device *dev)
static void netdev_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
snprintf(info->bus_info, sizeof(info->bus_info),
"PCMCIA 0x%lx", dev->base_addr);
strcpy(info->driver, DRV_NAME);
strcpy(info->version, DRV_VERSION);
sprintf(info->bus_info, "PCMCIA 0x%lx", dev->base_addr);
}

static const struct ethtool_ops netdev_ethtool_ops = {
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ static void atl1c_set_multi(struct net_device *netdev)
}
}

static void __atl1c_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data)
static void __atl1c_vlan_mode(u32 features, u32 *mac_ctrl_data)
{
if (features & NETIF_F_HW_VLAN_RX) {
/* enable VLAN tag insert/strip */
Expand All @@ -422,8 +422,7 @@ static void __atl1c_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data)
}
}

static void atl1c_vlan_mode(struct net_device *netdev,
netdev_features_t features)
static void atl1c_vlan_mode(struct net_device *netdev, u32 features)
{
struct atl1c_adapter *adapter = netdev_priv(netdev);
struct pci_dev *pdev = adapter->pdev;
Expand Down Expand Up @@ -483,8 +482,7 @@ static void atl1c_set_rxbufsize(struct atl1c_adapter *adapter,
roundup(mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN, 8) : AT_RX_BUF_SIZE;
}

static netdev_features_t atl1c_fix_features(struct net_device *netdev,
netdev_features_t features)
static u32 atl1c_fix_features(struct net_device *netdev, u32 features)
{
/*
* Since there is no support for separate rx/tx vlan accel
Expand All @@ -501,10 +499,9 @@ static netdev_features_t atl1c_fix_features(struct net_device *netdev,
return features;
}

static int atl1c_set_features(struct net_device *netdev,
netdev_features_t features)
static int atl1c_set_features(struct net_device *netdev, u32 features)
{
netdev_features_t changed = netdev->features ^ features;
u32 changed = netdev->features ^ features;

if (changed & NETIF_F_HW_VLAN_RX)
atl1c_vlan_mode(netdev, features);
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void atl1e_set_multi(struct net_device *netdev)
}
}

static void __atl1e_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data)
static void __atl1e_vlan_mode(u32 features, u32 *mac_ctrl_data)
{
if (features & NETIF_F_HW_VLAN_RX) {
/* enable VLAN tag insert/strip */
Expand All @@ -324,8 +324,7 @@ static void __atl1e_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data)
}
}

static void atl1e_vlan_mode(struct net_device *netdev,
netdev_features_t features)
static void atl1e_vlan_mode(struct net_device *netdev, u32 features)
{
struct atl1e_adapter *adapter = netdev_priv(netdev);
u32 mac_ctrl_data = 0;
Expand Down Expand Up @@ -371,8 +370,7 @@ static int atl1e_set_mac_addr(struct net_device *netdev, void *p)
return 0;
}

static netdev_features_t atl1e_fix_features(struct net_device *netdev,
netdev_features_t features)
static u32 atl1e_fix_features(struct net_device *netdev, u32 features)
{
/*
* Since there is no support for separate rx/tx vlan accel
Expand All @@ -386,10 +384,9 @@ static netdev_features_t atl1e_fix_features(struct net_device *netdev,
return features;
}

static int atl1e_set_features(struct net_device *netdev,
netdev_features_t features)
static int atl1e_set_features(struct net_device *netdev, u32 features)
{
netdev_features_t changed = netdev->features ^ features;
u32 changed = netdev->features ^ features;

if (changed & NETIF_F_HW_VLAN_RX)
atl1e_vlan_mode(netdev, features);
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/net/ethernet/atheros/atlx/atl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static inline void atl2_irq_disable(struct atl2_adapter *adapter)
synchronize_irq(adapter->pdev->irq);
}

static void __atl2_vlan_mode(netdev_features_t features, u32 *ctrl)
static void __atl2_vlan_mode(u32 features, u32 *ctrl)
{
if (features & NETIF_F_HW_VLAN_RX) {
/* enable VLAN tag insert/strip */
Expand All @@ -372,8 +372,7 @@ static void __atl2_vlan_mode(netdev_features_t features, u32 *ctrl)
}
}

static void atl2_vlan_mode(struct net_device *netdev,
netdev_features_t features)
static void atl2_vlan_mode(struct net_device *netdev, u32 features)
{
struct atl2_adapter *adapter = netdev_priv(netdev);
u32 ctrl;
Expand All @@ -392,8 +391,7 @@ static void atl2_restore_vlan(struct atl2_adapter *adapter)
atl2_vlan_mode(adapter->netdev, adapter->netdev->features);
}

static netdev_features_t atl2_fix_features(struct net_device *netdev,
netdev_features_t features)
static u32 atl2_fix_features(struct net_device *netdev, u32 features)
{
/*
* Since there is no support for separate rx/tx vlan accel
Expand All @@ -407,10 +405,9 @@ static netdev_features_t atl2_fix_features(struct net_device *netdev,
return features;
}

static int atl2_set_features(struct net_device *netdev,
netdev_features_t features)
static int atl2_set_features(struct net_device *netdev, u32 features)
{
netdev_features_t changed = netdev->features ^ features;
u32 changed = netdev->features ^ features;

if (changed & NETIF_F_HW_VLAN_RX)
atl2_vlan_mode(netdev, features);
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/net/ethernet/atheros/atlx/atlx.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static void atlx_link_chg_task(struct work_struct *work)
spin_unlock_irqrestore(&adapter->lock, flags);
}

static void __atlx_vlan_mode(netdev_features_t features, u32 *ctrl)
static void __atlx_vlan_mode(u32 features, u32 *ctrl)
{
if (features & NETIF_F_HW_VLAN_RX) {
/* enable VLAN tag insert/strip */
Expand All @@ -222,8 +222,7 @@ static void __atlx_vlan_mode(netdev_features_t features, u32 *ctrl)
}
}

static void atlx_vlan_mode(struct net_device *netdev,
netdev_features_t features)
static void atlx_vlan_mode(struct net_device *netdev, u32 features)
{
struct atlx_adapter *adapter = netdev_priv(netdev);
unsigned long flags;
Expand All @@ -243,8 +242,7 @@ static void atlx_restore_vlan(struct atlx_adapter *adapter)
atlx_vlan_mode(adapter->netdev, adapter->netdev->features);
}

static netdev_features_t atlx_fix_features(struct net_device *netdev,
netdev_features_t features)
static u32 atlx_fix_features(struct net_device *netdev, u32 features)
{
/*
* Since there is no support for separate rx/tx vlan accel
Expand All @@ -258,10 +256,9 @@ static netdev_features_t atlx_fix_features(struct net_device *netdev,
return features;
}

static int atlx_set_features(struct net_device *netdev,
netdev_features_t features)
static int atlx_set_features(struct net_device *netdev, u32 features)
{
netdev_features_t changed = netdev->features ^ features;
u32 changed = netdev->features ^ features;

if (changed & NETIF_F_HW_VLAN_RX)
atlx_vlan_mode(netdev, features);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/broadcom/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7571,8 +7571,8 @@ bnx2_set_phys_id(struct net_device *dev, enum ethtool_phys_id_state state)
return 0;
}

static netdev_features_t
bnx2_fix_features(struct net_device *dev, netdev_features_t features)
static u32
bnx2_fix_features(struct net_device *dev, u32 features)
{
struct bnx2 *bp = netdev_priv(dev);

Expand All @@ -7583,7 +7583,7 @@ bnx2_fix_features(struct net_device *dev, netdev_features_t features)
}

static int
bnx2_set_features(struct net_device *dev, netdev_features_t features)
bnx2_set_features(struct net_device *dev, u32 features)
{
struct bnx2 *bp = netdev_priv(dev);

Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3398,8 +3398,7 @@ int bnx2x_change_mtu(struct net_device *dev, int new_mtu)
return bnx2x_reload_if_running(dev);
}

netdev_features_t bnx2x_fix_features(struct net_device *dev,
netdev_features_t features)
u32 bnx2x_fix_features(struct net_device *dev, u32 features)
{
struct bnx2x *bp = netdev_priv(dev);

Expand All @@ -3410,7 +3409,7 @@ netdev_features_t bnx2x_fix_features(struct net_device *dev,
return features;
}

int bnx2x_set_features(struct net_device *dev, netdev_features_t features)
int bnx2x_set_features(struct net_device *dev, u32 features)
{
struct bnx2x *bp = netdev_priv(dev);
u32 flags = bp->flags;
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,8 @@ int bnx2x_change_mtu(struct net_device *dev, int new_mtu);
*/
int bnx2x_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type);
#endif
netdev_features_t bnx2x_fix_features(struct net_device *dev,
netdev_features_t features);
int bnx2x_set_features(struct net_device *dev, netdev_features_t features);
u32 bnx2x_fix_features(struct net_device *dev, u32 features);
int bnx2x_set_features(struct net_device *dev, u32 features);

/**
* bnx2x_tx_timeout - tx timeout netdev callback
Expand Down
Loading

0 comments on commit d046f06

Please sign in to comment.