Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214894
b: refs/heads/master
c: 7282907
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Oct 4, 2010
1 parent ed4396c commit ced2604
Show file tree
Hide file tree
Showing 9 changed files with 247 additions and 224 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: 41f4a6f71fe33faa7971c173c263fb431fe987fe
refs/heads/master: 72829071269b19381173a13ea1b2ca2f4f9d4cec
6 changes: 2 additions & 4 deletions trunk/drivers/atm/idt77252.c
Original file line number Diff line number Diff line change
Expand Up @@ -3152,7 +3152,7 @@ deinit_card(struct idt77252_dev *card)
}


static int __devinit
static void __devinit
init_sram(struct idt77252_dev *card)
{
int i;
Expand Down Expand Up @@ -3298,7 +3298,6 @@ init_sram(struct idt77252_dev *card)
SAR_REG_RXFD);

IPRINTK("%s: SRAM initialization complete.\n", card->name);
return 0;
}

static int __devinit
Expand Down Expand Up @@ -3410,8 +3409,7 @@ init_card(struct atm_dev *dev)

writel(readl(SAR_REG_CFG) | conf, SAR_REG_CFG);

if (init_sram(card) < 0)
return -1;
init_sram(card);

/********************************************************************/
/* A L L O C R A M A N D S E T V A R I O U S T H I N G S */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3863,7 +3863,7 @@ static void __devexit remove_one(struct pci_dev *pdev)
pci_disable_device(pdev);
pci_release_regions(pdev);
pci_set_drvdata(pdev, NULL);
} else if (PCI_FUNC(pdev->devfn) > 0)
} else
pci_release_regions(pdev);
}

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/tulip/de4x5.c
Original file line number Diff line number Diff line change
Expand Up @@ -5474,7 +5474,8 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
tmp.lval[6] = inl(DE4X5_STRR); j+=4;
tmp.lval[7] = inl(DE4X5_SIGR); j+=4;
ioc->len = j;
if (copy_to_user(ioc->data, tmp.lval, ioc->len)) return -EFAULT;
if (copy_to_user(ioc->data, tmp.lval, ioc->len))
return -EFAULT;
break;

#define DE4X5_DUMP 0x0f /* Dump the DE4X5 Status */
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/s390/net/qeth_l2_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ static void qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid)
struct qeth_vlan_vid *id;

QETH_CARD_TEXT_(card, 4, "aid:%d", vid);
if (!vid)
return;
if (card->info.type == QETH_CARD_TYPE_OSM) {
QETH_CARD_TEXT(card, 3, "aidOSM");
return;
Expand Down
27 changes: 13 additions & 14 deletions trunk/drivers/s390/net/qeth_l3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2013,13 +2013,14 @@ static void qeth_l3_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid)
qeth_l3_set_multicast_list(card->dev);
}

static inline __u16 qeth_l3_rebuild_skb(struct qeth_card *card,
struct sk_buff *skb, struct qeth_hdr *hdr)
static inline int qeth_l3_rebuild_skb(struct qeth_card *card,
struct sk_buff *skb, struct qeth_hdr *hdr,
unsigned short *vlan_id)
{
unsigned short vlan_id = 0;
__be16 prot;
struct iphdr *ip_hdr;
unsigned char tg_addr[MAX_ADDR_LEN];
int is_vlan = 0;

if (!(hdr->hdr.l3.flags & QETH_HDR_PASSTHRU)) {
prot = htons((hdr->hdr.l3.flags & QETH_HDR_IPV6)? ETH_P_IPV6 :
Expand Down Expand Up @@ -2082,8 +2083,9 @@ static inline __u16 qeth_l3_rebuild_skb(struct qeth_card *card,

if (hdr->hdr.l3.ext_flags &
(QETH_HDR_EXT_VLAN_FRAME | QETH_HDR_EXT_INCLUDE_VLAN_TAG)) {
vlan_id = (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_VLAN_FRAME)?
*vlan_id = (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_VLAN_FRAME) ?
hdr->hdr.l3.vlan_id : *((u16 *)&hdr->hdr.l3.dest_addr[12]);
is_vlan = 1;
}

switch (card->options.checksum_type) {
Expand All @@ -2104,7 +2106,7 @@ static inline __u16 qeth_l3_rebuild_skb(struct qeth_card *card,
skb->ip_summed = CHECKSUM_NONE;
}

return vlan_id;
return is_vlan;
}

static int qeth_l3_process_inbound_buffer(struct qeth_card *card,
Expand All @@ -2114,6 +2116,7 @@ static int qeth_l3_process_inbound_buffer(struct qeth_card *card,
struct sk_buff *skb;
struct qeth_hdr *hdr;
__u16 vlan_tag = 0;
int is_vlan;
unsigned int len;

*done = 0;
Expand All @@ -2129,16 +2132,12 @@ static int qeth_l3_process_inbound_buffer(struct qeth_card *card,
skb->dev = card->dev;
switch (hdr->hdr.l3.id) {
case QETH_HEADER_TYPE_LAYER3:
vlan_tag = qeth_l3_rebuild_skb(card, skb, hdr);
is_vlan = qeth_l3_rebuild_skb(card, skb, hdr,
&vlan_tag);
len = skb->len;
if (vlan_tag && !card->options.sniffer)
if (card->vlangrp)
vlan_gro_receive(&card->napi,
card->vlangrp, vlan_tag, skb);
else {
dev_kfree_skb_any(skb);
continue;
}
if (is_vlan && !card->options.sniffer)
vlan_gro_receive(&card->napi, card->vlangrp,
vlan_tag, skb);
else
napi_gro_receive(&card->napi, skb);
break;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mroute.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ struct mfc_cache {
unsigned char ttls[MAXVIFS]; /* TTL thresholds */
} res;
} mfc_un;
struct rcu_head rcu;
};

#define MFC_STATIC 1
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <net/gre.h>


const struct gre_protocol *gre_proto[GREPROTO_MAX] __read_mostly;
static const struct gre_protocol *gre_proto[GREPROTO_MAX] __read_mostly;
static DEFINE_SPINLOCK(gre_proto_lock);

int gre_add_protocol(const struct gre_protocol *proto, u8 version)
Expand Down
Loading

0 comments on commit ced2604

Please sign in to comment.