Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126765
b: refs/heads/master
c: 4cf7c4c
h: refs/heads/master
i:
  126763: 703a538
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 6, 2009
1 parent a6af6cc commit 024d592
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 8501d21fd2d4ce5449ea0141db3d8a7766523438
refs/heads/master: 4cf7c4c692f05e137b65b9a2d7abe5bcb5408820
10 changes: 4 additions & 6 deletions trunk/drivers/staging/epl/VirtualEthernetLinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static int VEthOpen(struct net_device *pNetDevice_p)
tEplKernel Ret = kEplSuccessful;

//open the device
// struct net_device_stats* pStats = (struct net_device_stats*)pNetDevice_p->priv;
// struct net_device_stats* pStats = netdev_priv(pNetDevice_p);

//start the interface queue for the network subsystem
netif_start_queue(pNetDevice_p);
Expand Down Expand Up @@ -199,8 +199,7 @@ static int VEthXmit(struct sk_buff *pSkb_p, struct net_device *pNetDevice_p)
tEplFrameInfo FrameInfo;

//transmit function
struct net_device_stats *pStats =
(struct net_device_stats *)pNetDevice_p->priv;
struct net_device_stats *pStats = netdev_priv(pNetDevice_p);

//save timestemp
pNetDevice_p->trans_start = jiffies;
Expand Down Expand Up @@ -233,7 +232,7 @@ static struct net_device_stats *VEthGetStats(struct net_device *pNetDevice_p)
{
EPL_DBGLVL_VETH_TRACE0("VEthGetStats\n");

return (struct net_device_stats *)pNetDevice_p->priv;
return netdev_priv(pNetDevice_p);
}

static void VEthTimeout(struct net_device *pNetDevice_p)
Expand All @@ -250,8 +249,7 @@ static tEplKernel VEthRecvFrame(tEplFrameInfo * pFrameInfo_p)
{
tEplKernel Ret = kEplSuccessful;
struct net_device *pNetDevice = pVEthNetDevice_g;
struct net_device_stats *pStats =
(struct net_device_stats *)pNetDevice->priv;
struct net_device_stats *pStats = netdev_priv(pNetDevice);
struct sk_buff *pSkb;

EPL_DBGLVL_VETH_TRACE1("VEthRecvFrame: FrameSize=%u\n",
Expand Down

0 comments on commit 024d592

Please sign in to comment.