Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
505c602f
Commit
505c602f
authored
Nov 27, 2002
by
Dave Jones
Committed by
Jeff Garzik
Nov 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr] Add missing WAN driver assignments to dev->last_rx for each RX packet
parent
d0d43048
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
1 deletion
+21
-1
drivers/net/wan/lapbether.c
drivers/net/wan/lapbether.c
+3
-0
drivers/net/wan/lmc/lmc_proto.c
drivers/net/wan/lmc/lmc_proto.c
+1
-0
drivers/net/wan/sdla_chdlc.c
drivers/net/wan/sdla_chdlc.c
+2
-0
drivers/net/wan/sdla_fr.c
drivers/net/wan/sdla_fr.c
+1
-0
drivers/net/wan/sdla_ppp.c
drivers/net/wan/sdla_ppp.c
+3
-1
drivers/net/wan/syncppp.c
drivers/net/wan/syncppp.c
+4
-0
drivers/net/wan/wanpipe_multppp.c
drivers/net/wan/wanpipe_multppp.c
+3
-0
drivers/net/wan/x25_asy.c
drivers/net/wan/x25_asy.c
+4
-0
No files found.
drivers/net/wan/lapbether.c
View file @
505c602f
...
...
@@ -186,6 +186,7 @@ static int lapbeth_data_indication(void *token, struct sk_buff *skb)
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
pkt_type
=
PACKET_HOST
;
skb
->
dev
->
last_rx
=
jiffies
;
return
netif_rx
(
skb
);
}
...
...
@@ -283,6 +284,7 @@ static void lapbeth_connected(void *token, int reason)
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
pkt_type
=
PACKET_HOST
;
skb
->
dev
->
last_rx
=
jiffies
;
netif_rx
(
skb
);
}
...
...
@@ -305,6 +307,7 @@ static void lapbeth_disconnected(void *token, int reason)
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
pkt_type
=
PACKET_HOST
;
skb
->
dev
->
last_rx
=
jiffies
;
netif_rx
(
skb
);
}
...
...
drivers/net/wan/lmc/lmc_proto.c
View file @
505c602f
...
...
@@ -253,6 +253,7 @@ void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/
case
LMC_PPP
:
case
LMC_NET
:
default:
skb
->
dev
->
last_rx
=
jiffies
;
netif_rx
(
skb
);
break
;
case
LMC_RAW
:
...
...
drivers/net/wan/sdla_chdlc.c
View file @
505c602f
...
...
@@ -2219,6 +2219,7 @@ static void rx_intr (sdla_t* card)
skb
->
dev
=
dev
;
skb
->
mac
.
raw
=
skb
->
data
;
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
}
rx_exit:
...
...
@@ -3276,6 +3277,7 @@ static int process_udp_mgmt_pkt(sdla_t* card, netdevice_t* dev,
new_skb
->
mac
.
raw
=
new_skb
->
data
;
netif_rx
(
new_skb
);
dev
->
last_rx
=
jiffies
;
}
else
{
printk
(
KERN_INFO
"%s: no socket buffers available!
\n
"
,
...
...
drivers/net/wan/sdla_fr.c
View file @
505c602f
...
...
@@ -2352,6 +2352,7 @@ static void rx_intr (sdla_t* card)
/* Send a packed up the IP stack */
skb
->
dev
->
last_rx
=
jiffies
;
netif_rx
(
skb
);
++
chan
->
drvstats_rx_intr
.
rx_intr_bfr_passed_to_stack
;
++
chan
->
ifstats
.
rx_packets
;
...
...
drivers/net/wan/sdla_ppp.c
View file @
505c602f
...
...
@@ -1897,6 +1897,7 @@ static void rx_intr(sdla_t *card)
#endif
++
ppp_priv_area
->
rx_intr_stat
.
rx_intr_bfr_passed_to_stack
;
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
}
}
else
{
...
...
@@ -2451,7 +2452,7 @@ static int config508(netdevice_t *dev, sdla_t *card)
#endif
default:
printk
(
KERN_INFO
"%s: ERROR: Unsuported PPP Mode Selected
\n
"
,
printk
(
KERN_INFO
"%s: ERROR: Unsup
p
orted PPP Mode Selected
\n
"
,
card
->
devname
);
printk
(
KERN_INFO
"%s: PPP IP Modes: STATIC, PEER or HOST
\n
"
,
card
->
devname
);
...
...
@@ -2943,6 +2944,7 @@ static void process_udp_mgmt_pkt(sdla_t *card, netdevice_t *dev,
new_skb
->
dev
=
dev
;
new_skb
->
mac
.
raw
=
new_skb
->
data
;
netif_rx
(
new_skb
);
dev
->
last_rx
=
jiffies
;
}
else
{
...
...
drivers/net/wan/syncppp.c
View file @
505c602f
...
...
@@ -276,6 +276,7 @@ invalid: if (sp->pp_flags & PP_DEBUG)
printk
(
KERN_DEBUG
"Yow an IP frame.
\n
"
);
skb
->
protocol
=
htons
(
ETH_P_IP
);
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
return
;
}
break
;
...
...
@@ -285,6 +286,7 @@ invalid: if (sp->pp_flags & PP_DEBUG)
if
(
sp
->
lcp
.
state
==
LCP_STATE_OPENED
)
{
skb
->
protocol
=
htons
(
ETH_P_IPX
);
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
return
;
}
break
;
...
...
@@ -312,12 +314,14 @@ invalid: if (sp->pp_flags & PP_DEBUG)
case
ETH_P_IP
:
skb
->
protocol
=
htons
(
ETH_P_IP
);
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
return
;
#endif
#ifdef CONFIG_IPX
case
ETH_P_IPX
:
skb
->
protocol
=
htons
(
ETH_P_IPX
);
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
return
;
#endif
}
...
...
drivers/net/wan/wanpipe_multppp.c
View file @
505c602f
...
...
@@ -1572,6 +1572,7 @@ static void rx_intr (sdla_t* card)
skb
->
dev
=
dev
;
skb
->
mac
.
raw
=
skb
->
data
;
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
}
rx_exit:
...
...
@@ -2175,6 +2176,7 @@ static int process_udp_mgmt_pkt(sdla_t* card, netdevice_t* dev,
new_skb
->
mac
.
raw
=
new_skb
->
data
;
netif_rx
(
new_skb
);
dev
->
last_rx
=
jiffies
;
}
else
{
printk
(
KERN_INFO
"%s: no socket buffers available!
\n
"
,
...
...
@@ -2470,6 +2472,7 @@ static void send_ppp_term_request (netdevice_t *dev)
new_skb
->
mac
.
raw
=
new_skb
->
data
;
netif_rx
(
new_skb
);
dev
->
last_rx
=
jiffies
;
}
}
...
...
drivers/net/wan/x25_asy.c
View file @
505c602f
...
...
@@ -250,6 +250,7 @@ static void x25_asy_bump(struct x25_asy *sl)
else
{
netif_rx
(
skb
);
sl
->
dev
->
last_rx
=
jiffies
;
sl
->
rx_packets
++
;
}
}
...
...
@@ -397,6 +398,7 @@ static int x25_asy_xmit(struct sk_buff *skb, struct net_device *dev)
static
int
x25_asy_data_indication
(
void
*
token
,
struct
sk_buff
*
skb
)
{
skb
->
dev
->
last_rx
=
jiffies
;
return
netif_rx
(
skb
);
}
...
...
@@ -449,6 +451,7 @@ static void x25_asy_connected(void *token, int reason)
skb
->
pkt_type
=
PACKET_HOST
;
netif_rx
(
skb
);
sl
->
dev
->
last_rx
=
jiffies
;
}
static
void
x25_asy_disconnected
(
void
*
token
,
int
reason
)
...
...
@@ -471,6 +474,7 @@ static void x25_asy_disconnected(void *token, int reason)
skb
->
pkt_type
=
PACKET_HOST
;
netif_rx
(
skb
);
sl
->
dev
->
last_rx
=
jiffies
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment