Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69318
b: refs/heads/master
c: e636b2e
h: refs/heads/master
v: v3
  • Loading branch information
Brice Goglin authored and Jeff Garzik committed Oct 15, 2007
1 parent 6072b42 commit a2eeb48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: dd957c57c52a3964b8446a3e868a08186274b628
refs/heads/master: e636b2ead8260aca514a95f2dcb73b0454d1a869
11 changes: 5 additions & 6 deletions trunk/drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,8 @@ myri10ge_rx_done(struct myri10ge_priv *mgp, struct myri10ge_rx_buf *rx,

hlen = MYRI10GE_HLEN > len ? len : MYRI10GE_HLEN;

/* allocate an skb to attach the page(s) to. */
/* allocate an skb to attach the page(s) to. This is done
* after trying LRO, so as to avoid skb allocation overheads */

skb = netdev_alloc_skb(dev, MYRI10GE_HLEN + 16);
if (unlikely(skb == NULL)) {
Expand Down Expand Up @@ -1217,7 +1218,8 @@ static inline void myri10ge_check_statblock(struct myri10ge_priv *mgp)

static int myri10ge_poll(struct napi_struct *napi, int budget)
{
struct myri10ge_priv *mgp = container_of(napi, struct myri10ge_priv, napi);
struct myri10ge_priv *mgp =
container_of(napi, struct myri10ge_priv, napi);
struct net_device *netdev = mgp->dev;
struct myri10ge_rx_done *rx_done = &mgp->rx_done;
int work_done;
Expand Down Expand Up @@ -2706,7 +2708,6 @@ static void myri10ge_select_firmware(struct myri10ge_priv *mgp)
}

#ifdef CONFIG_PM

static int myri10ge_suspend(struct pci_dev *pdev, pm_message_t state)
{
struct myri10ge_priv *mgp;
Expand Down Expand Up @@ -2787,7 +2788,6 @@ static int myri10ge_resume(struct pci_dev *pdev)
return -EIO;

}

#endif /* CONFIG_PM */

static u32 myri10ge_read_reboot(struct myri10ge_priv *mgp)
Expand Down Expand Up @@ -2954,8 +2954,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

mgp = netdev_priv(netdev);
mgp->dev = netdev;
netif_napi_add(netdev, &mgp->napi,
myri10ge_poll, myri10ge_napi_weight);
netif_napi_add(netdev, &mgp->napi, myri10ge_poll, myri10ge_napi_weight);
mgp->pdev = pdev;
mgp->csum_flag = MXGEFW_FLAGS_CKSUM;
mgp->pause = myri10ge_flow_control;
Expand Down

0 comments on commit a2eeb48

Please sign in to comment.