Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90329
b: refs/heads/master
c: c346dca
h: refs/heads/master
i:
  90327: 9ac70f4
v: v3
  • Loading branch information
YOSHIFUJI Hideaki committed Mar 25, 2008
1 parent ac6f95f commit 76279f8
Show file tree
Hide file tree
Showing 150 changed files with 2,820 additions and 3,428 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: f89e6e3834035c6e8203042f3527931aa7f52496
refs/heads/master: c346dca10840a874240c78efe3f39acf4312a1f2
2 changes: 1 addition & 1 deletion trunk/arch/ia64/hp/sim/simeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
return NOTIFY_DONE;
}

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

if ( event != NETDEV_UP && event != NETDEV_DOWN ) return NOTIFY_DONE;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/block/aoe/aoenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt,
struct aoe_hdr *h;
u32 n;

if (ifp->nd_net != &init_net)
if (dev_net(ifp) != &init_net)
goto exit;

skb = skb_share_check(skb, GFP_ATOMIC);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2429,7 +2429,7 @@ int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct net_device *dev, struct pac
struct slave *slave = NULL;
int ret = NET_RX_DROP;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
goto out;

if (!(dev->flags & IFF_MASTER))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bond_alb.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static int rlb_arp_recv(struct sk_buff *skb, struct net_device *bond_dev, struct
struct arp_pkt *arp = (struct arp_pkt *)skb->data;
int res = NET_RX_DROP;

if (bond_dev->nd_net != &init_net)
if (dev_net(bond_dev) != &init_net)
goto out;

if (!(bond_dev->flags & IFF_MASTER))
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,7 @@ static int bond_arp_rcv(struct sk_buff *skb, struct net_device *dev, struct pack
unsigned char *arp_ptr;
__be32 sip, tip;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
goto out;

if (!(dev->priv_flags & IFF_BONDING) || !(dev->flags & IFF_MASTER))
Expand Down Expand Up @@ -3470,7 +3470,7 @@ static int bond_netdev_event(struct notifier_block *this, unsigned long event, v
{
struct net_device *event_dev = (struct net_device *)ptr;

if (event_dev->nd_net != &init_net)
if (dev_net(event_dev) != &init_net)
return NOTIFY_DONE;

dprintk("event_dev: %s, event: %lx\n",
Expand Down Expand Up @@ -3508,7 +3508,7 @@ static int bond_inetaddr_event(struct notifier_block *this, unsigned long event,
struct bonding *bond, *bond_next;
struct vlan_entry *vlan, *vlan_next;

if (ifa->ifa_dev->dev->nd_net != &init_net)
if (dev_net(ifa->ifa_dev->dev) != &init_net)
return NOTIFY_DONE;

list_for_each_entry_safe(bond, bond_next, &bond_dev_list, bond_list) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/hamradio/bpqether.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int bpq_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_ty
struct ethhdr *eth;
struct bpqdev *bpq;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
goto drop;

if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL)
Expand Down Expand Up @@ -553,7 +553,7 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi
{
struct net_device *dev = (struct net_device *)ptr;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

if (!dev_is_ethdev(dev))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static __net_init int loopback_net_init(struct net *net)
if (!dev)
goto out;

dev->nd_net = net;
dev_net_set(dev, net);
err = register_netdev(dev);
if (err)
goto out_free_netdev;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static int macvlan_newlink(struct net_device *dev,
if (!tb[IFLA_LINK])
return -EINVAL;

lowerdev = __dev_get_by_index(dev->nd_net, nla_get_u32(tb[IFLA_LINK]));
lowerdev = __dev_get_by_index(dev_net(dev), nla_get_u32(tb[IFLA_LINK]));
if (lowerdev == NULL)
return -ENODEV;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/pppoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static int pppoe_device_event(struct notifier_block *this,
{
struct net_device *dev = (struct net_device *) ptr;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

/* Only look at sockets that are using this specific device. */
Expand Down Expand Up @@ -392,7 +392,7 @@ static int pppoe_rcv(struct sk_buff *skb,
if (!(skb = skb_share_check(skb, GFP_ATOMIC)))
goto out;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
goto drop;

if (!pskb_may_pull(skb, sizeof(struct pppoe_hdr)))
Expand Down Expand Up @@ -424,7 +424,7 @@ static int pppoe_disc_rcv(struct sk_buff *skb,
struct pppoe_hdr *ph;
struct pppox_sock *po;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
goto abort;

if (!pskb_may_pull(skb, sizeof(struct pppoe_hdr)))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ps3_gelic_wireless.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static inline int wpa2_capable(void)

static inline int precise_ie(void)
{
return (0 <= ps3_compare_firmware_version(2, 2, 0));
return 0; /* FIXME */
}
/*
* post_eurus_cmd helpers
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static int veth_newlink(struct net_device *dev,
else
snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d");

peer = rtnl_create_link(dev->nd_net, ifname, &veth_link_ops, tbp);
peer = rtnl_create_link(dev_net(dev), ifname, &veth_link_ops, tbp);
if (IS_ERR(peer))
return PTR_ERR(peer);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -3464,7 +3464,7 @@ static int velocity_netdev_event(struct notifier_block *nb, unsigned long notifi
struct velocity_info *vptr;
unsigned long flags;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

spin_lock_irqsave(&velocity_dev_list_lock, flags);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wan/dlci.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static int dlci_dev_event(struct notifier_block *unused,
{
struct net_device *dev = (struct net_device *) ptr;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

if (event == NETDEV_UNREGISTER) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wan/hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev,
{
struct hdlc_device *hdlc = dev_to_hdlc(dev);

if (dev->nd_net != &init_net) {
if (dev_net(dev) != &init_net) {
kfree_skb(skb);
return 0;
}
Expand Down Expand Up @@ -105,7 +105,7 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event,
unsigned long flags;
int on;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

if (dev->get_stats != hdlc_get_stats)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wan/lapbether.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static int lapbeth_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
int len, err;
struct lapbethdev *lapbeth;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
goto drop;

if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL)
Expand Down Expand Up @@ -393,7 +393,7 @@ static int lapbeth_device_event(struct notifier_block *this,
struct lapbethdev *lapbeth;
struct net_device *dev = ptr;

if (dev->nd_net != &init_net)
if (dev_net(dev) != &init_net)
return NOTIFY_DONE;

if (!dev_is_ethdev(dev))
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wan/syncppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ static void sppp_print_bytes (u_char *p, u16 len)

static int sppp_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *p, struct net_device *orig_dev)
{
if (dev->nd_net != &init_net) {
if (dev_net(dev) != &init_net) {
kfree_skb(skb);
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/b43/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
b43-y += main.o
b43-y += tables.o
b43-$(CONFIG_B43_NPHY) += tables_nphy.o
b43-y += tables_nphy.o
b43-y += phy.o
b43-$(CONFIG_B43_NPHY) += nphy.o
b43-y += nphy.o
b43-y += sysfs.o
b43-y += xmit.o
b43-y += lo.o
Expand Down
40 changes: 0 additions & 40 deletions trunk/drivers/net/wireless/b43/nphy.h
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,6 @@

struct b43_wldev;


#ifdef CONFIG_B43_NPHY
/* N-PHY support enabled */

int b43_phy_initn(struct b43_wldev *dev);

void b43_nphy_radio_turn_on(struct b43_wldev *dev);
Expand All @@ -933,40 +929,4 @@ int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel);
void b43_nphy_xmitpower(struct b43_wldev *dev);
void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna);


#else /* CONFIG_B43_NPHY */
/* N-PHY support disabled */


static inline
int b43_phy_initn(struct b43_wldev *dev)
{
return -EOPNOTSUPP;
}

static inline
void b43_nphy_radio_turn_on(struct b43_wldev *dev)
{
}
static inline
void b43_nphy_radio_turn_off(struct b43_wldev *dev)
{
}

static inline
int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel)
{
return -ENOSYS;
}

static inline
void b43_nphy_xmitpower(struct b43_wldev *dev)
{
}
static inline
void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna)
{
}

#endif /* CONFIG_B43_NPHY */
#endif /* B43_NPHY_H_ */
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -4495,9 +4495,9 @@ static void ipw_rx_notification(struct ipw_priv *priv,
priv->
essid_len),
print_mac(mac, priv->bssid),
le16_to_cpu(auth->status),
ntohs(auth->status),
ipw_get_status_code
(le16_to_cpu
(ntohs
(auth->status)));

priv->status &=
Expand Down Expand Up @@ -4532,9 +4532,9 @@ static void ipw_rx_notification(struct ipw_priv *priv,
IPW_DL_STATE |
IPW_DL_ASSOC,
"association failed (0x%04X): %s\n",
le16_to_cpu(resp->status),
ntohs(resp->status),
ipw_get_status_code
(le16_to_cpu
(ntohs
(resp->status)));
}

Expand Down Expand Up @@ -4591,8 +4591,8 @@ static void ipw_rx_notification(struct ipw_priv *priv,
IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE |
IPW_DL_ASSOC,
"authentication failed (0x%04X): %s\n",
le16_to_cpu(auth->status),
ipw_get_status_code(le16_to_cpu
ntohs(auth->status),
ipw_get_status_code(ntohs
(auth->
status)));
}
Expand Down
Loading

0 comments on commit 76279f8

Please sign in to comment.