Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135291
b: refs/heads/master
c: cedc1db
h: refs/heads/master
i:
  135289: e37e13e
  135287: 5bb1968
v: v3
  • Loading branch information
Dave Jones authored and David S. Miller committed Mar 19, 2009
1 parent e51d959 commit d777f22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 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: af4330631cd48987755f1a8d324dc318f60cf16b
refs/heads/master: cedc1dba74f481a632c5d5aedad0068d6ad945d8
19 changes: 5 additions & 14 deletions trunk/drivers/net/a2065.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,18 +552,13 @@ static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
struct lance_private *lp = netdev_priv(dev);
volatile struct lance_regs *ll = lp->ll;
volatile struct lance_init_block *ib = lp->init_block;
int entry, skblen, len;
int entry, skblen;
int status = 0;
unsigned long flags;

skblen = skb->len;
len = skblen;

if (len < ETH_ZLEN) {
len = ETH_ZLEN;
if (skb_padto(skb, ETH_ZLEN))
return 0;
}
if (skb_padto(skb, ETH_ZLEN))
return 0;
skblen = max_t(unsigned, skb->len, ETH_ZLEN);

local_irq_save(flags);

Expand All @@ -586,15 +581,11 @@ static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev)
}
#endif
entry = lp->tx_new & lp->tx_ring_mod_mask;
ib->btx_ring [entry].length = (-len) | 0xf000;
ib->btx_ring [entry].length = (-skblen) | 0xf000;
ib->btx_ring [entry].misc = 0;

skb_copy_from_linear_data(skb, (void *)&ib->tx_buf [entry][0], skblen);

/* Clear the slack of the packet, do I need this? */
if (len != skblen)
memset ((void *) &ib->tx_buf [entry][skblen], 0, len - skblen);

/* Now, give the packet to the lance */
ib->btx_ring [entry].tmd1_bits = (LE_T1_POK|LE_T1_OWN);
lp->tx_new = (lp->tx_new+1) & lp->tx_ring_mod_mask;
Expand Down

0 comments on commit d777f22

Please sign in to comment.