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
b65cb184
Commit
b65cb184
authored
Oct 27, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/acme/sk_buff-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
30cd9e65
f984024e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
39 deletions
+29
-39
drivers/char/pcmcia/synclink_cs.c
drivers/char/pcmcia/synclink_cs.c
+1
-3
drivers/char/synclink.c
drivers/char/synclink.c
+1
-3
drivers/char/synclinkmp.c
drivers/char/synclinkmp.c
+1
-3
drivers/net/wan/dscc4.c
drivers/net/wan/dscc4.c
+0
-1
drivers/net/wan/farsync.c
drivers/net/wan/farsync.c
+20
-22
drivers/net/wan/hd6457x.c
drivers/net/wan/hd6457x.c
+0
-2
drivers/net/wan/pc300_drv.c
drivers/net/wan/pc300_drv.c
+0
-1
drivers/net/wan/wanxl.c
drivers/net/wan/wanxl.c
+0
-2
include/linux/hdlc.h
include/linux/hdlc.h
+6
-2
No files found.
drivers/char/pcmcia/synclink_cs.c
View file @
b65cb184
...
@@ -4557,9 +4557,7 @@ static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size)
...
@@ -4557,9 +4557,7 @@ static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size)
memcpy
(
skb_put
(
skb
,
size
),
buf
,
size
);
memcpy
(
skb_put
(
skb
,
size
),
buf
,
size
);
skb
->
dev
=
info
->
netdev
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
info
->
netdev
);
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
skb
->
dev
);
stats
->
rx_packets
++
;
stats
->
rx_packets
++
;
stats
->
rx_bytes
+=
size
;
stats
->
rx_bytes
+=
size
;
...
...
drivers/char/synclink.c
View file @
b65cb184
...
@@ -8089,9 +8089,7 @@ static void hdlcdev_rx(struct mgsl_struct *info, char *buf, int size)
...
@@ -8089,9 +8089,7 @@ static void hdlcdev_rx(struct mgsl_struct *info, char *buf, int size)
memcpy
(
skb_put
(
skb
,
size
),
buf
,
size
);
memcpy
(
skb_put
(
skb
,
size
),
buf
,
size
);
skb
->
dev
=
info
->
netdev
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
info
->
netdev
);
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
skb
->
dev
);
stats
->
rx_packets
++
;
stats
->
rx_packets
++
;
stats
->
rx_bytes
+=
size
;
stats
->
rx_bytes
+=
size
;
...
...
drivers/char/synclinkmp.c
View file @
b65cb184
...
@@ -1954,9 +1954,7 @@ static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size)
...
@@ -1954,9 +1954,7 @@ static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size)
memcpy
(
skb_put
(
skb
,
size
),
buf
,
size
);
memcpy
(
skb_put
(
skb
,
size
),
buf
,
size
);
skb
->
dev
=
info
->
netdev
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
info
->
netdev
);
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
skb
->
dev
);
stats
->
rx_packets
++
;
stats
->
rx_packets
++
;
stats
->
rx_bytes
+=
size
;
stats
->
rx_bytes
+=
size
;
...
...
drivers/net/wan/dscc4.c
View file @
b65cb184
...
@@ -518,7 +518,6 @@ inline int try_get_rx_skb(struct dscc4_dev_priv *dpriv, struct net_device *dev)
...
@@ -518,7 +518,6 @@ inline int try_get_rx_skb(struct dscc4_dev_priv *dpriv, struct net_device *dev)
skb
=
dev_alloc_skb
(
len
);
skb
=
dev_alloc_skb
(
len
);
dpriv
->
rx_skbuff
[
dirty
]
=
skb
;
dpriv
->
rx_skbuff
[
dirty
]
=
skb
;
if
(
skb
)
{
if
(
skb
)
{
skb
->
dev
=
dev
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
mac
.
raw
=
skb
->
data
;
rx_fd
->
data
=
pci_map_single
(
dpriv
->
pci_priv
->
pdev
,
skb
->
data
,
rx_fd
->
data
=
pci_map_single
(
dpriv
->
pci_priv
->
pdev
,
skb
->
data
,
...
...
drivers/net/wan/farsync.c
View file @
b65cb184
...
@@ -857,6 +857,18 @@ fst_tx_dma_complete(struct fst_card_info *card, struct fst_port_info *port,
...
@@ -857,6 +857,18 @@ fst_tx_dma_complete(struct fst_card_info *card, struct fst_port_info *port,
dev
->
trans_start
=
jiffies
;
dev
->
trans_start
=
jiffies
;
}
}
/*
* Mark it for our own raw sockets interface
*/
static
unsigned
short
farsync_type_trans
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
skb
->
dev
=
dev
;
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
pkt_type
=
PACKET_HOST
;
return
htons
(
ETH_P_CUST
);
}
/* Rx dma complete interrupt
/* Rx dma complete interrupt
*/
*/
static
void
static
void
...
@@ -881,17 +893,10 @@ fst_rx_dma_complete(struct fst_card_info *card, struct fst_port_info *port,
...
@@ -881,17 +893,10 @@ fst_rx_dma_complete(struct fst_card_info *card, struct fst_port_info *port,
/* Push upstream */
/* Push upstream */
dbg
(
DBG_RX
,
"Pushing the frame up the stack
\n
"
);
dbg
(
DBG_RX
,
"Pushing the frame up the stack
\n
"
);
skb
->
mac
.
raw
=
skb
->
data
;
if
(
port
->
mode
==
FST_RAW
)
skb
->
dev
=
dev
;
skb
->
protocol
=
farsync_type_trans
(
skb
,
dev
);
if
(
port
->
mode
==
FST_RAW
)
{
else
/*
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
* Mark it for our own raw sockets interface
*/
skb
->
protocol
=
htons
(
ETH_P_CUST
);
skb
->
pkt_type
=
PACKET_HOST
;
}
else
{
skb
->
protocol
=
hdlc_type_trans
(
skb
,
skb
->
dev
);
}
rx_status
=
netif_rx
(
skb
);
rx_status
=
netif_rx
(
skb
);
fst_process_rx_status
(
rx_status
,
port_to_dev
(
port
)
->
name
);
fst_process_rx_status
(
rx_status
,
port_to_dev
(
port
)
->
name
);
if
(
rx_status
==
NET_RX_DROP
)
if
(
rx_status
==
NET_RX_DROP
)
...
@@ -1316,17 +1321,10 @@ fst_intr_rx(struct fst_card_info *card, struct fst_port_info *port)
...
@@ -1316,17 +1321,10 @@ fst_intr_rx(struct fst_card_info *card, struct fst_port_info *port)
/* Push upstream */
/* Push upstream */
dbg
(
DBG_RX
,
"Pushing frame up the stack
\n
"
);
dbg
(
DBG_RX
,
"Pushing frame up the stack
\n
"
);
skb
->
mac
.
raw
=
skb
->
data
;
if
(
port
->
mode
==
FST_RAW
)
skb
->
dev
=
dev
;
skb
->
protocol
=
farsync_type_trans
(
skb
,
dev
);
if
(
port
->
mode
==
FST_RAW
)
{
else
/*
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
* Mark it for our own raw sockets interface
*/
skb
->
protocol
=
htons
(
ETH_P_CUST
);
skb
->
pkt_type
=
PACKET_HOST
;
}
else
{
skb
->
protocol
=
hdlc_type_trans
(
skb
,
skb
->
dev
);
}
rx_status
=
netif_rx
(
skb
);
rx_status
=
netif_rx
(
skb
);
fst_process_rx_status
(
rx_status
,
port_to_dev
(
port
)
->
name
);
fst_process_rx_status
(
rx_status
,
port_to_dev
(
port
)
->
name
);
if
(
rx_status
==
NET_RX_DROP
)
{
if
(
rx_status
==
NET_RX_DROP
)
{
...
...
drivers/net/wan/hd6457x.c
View file @
b65cb184
...
@@ -315,8 +315,6 @@ static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, u1
...
@@ -315,8 +315,6 @@ static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, u1
#endif
#endif
stats
->
rx_packets
++
;
stats
->
rx_packets
++
;
stats
->
rx_bytes
+=
skb
->
len
;
stats
->
rx_bytes
+=
skb
->
len
;
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
dev
=
dev
;
skb
->
dev
->
last_rx
=
jiffies
;
skb
->
dev
->
last_rx
=
jiffies
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
netif_rx
(
skb
);
netif_rx
(
skb
);
...
...
drivers/net/wan/pc300_drv.c
View file @
b65cb184
...
@@ -1959,7 +1959,6 @@ void cpc_net_rx(struct net_device *dev)
...
@@ -1959,7 +1959,6 @@ void cpc_net_rx(struct net_device *dev)
cpc_trace
(
dev
,
skb
,
'R'
);
cpc_trace
(
dev
,
skb
,
'R'
);
}
}
stats
->
rx_packets
++
;
stats
->
rx_packets
++
;
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
netif_rx
(
skb
);
netif_rx
(
skb
);
}
}
...
...
drivers/net/wan/wanxl.c
View file @
b65cb184
...
@@ -224,8 +224,6 @@ static inline void wanxl_rx_intr(card_t *card)
...
@@ -224,8 +224,6 @@ static inline void wanxl_rx_intr(card_t *card)
#endif
#endif
stats
->
rx_packets
++
;
stats
->
rx_packets
++
;
stats
->
rx_bytes
+=
skb
->
len
;
stats
->
rx_bytes
+=
skb
->
len
;
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
dev
=
dev
;
dev
->
last_rx
=
jiffies
;
dev
->
last_rx
=
jiffies
;
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
skb
->
protocol
=
hdlc_type_trans
(
skb
,
dev
);
netif_rx
(
skb
);
netif_rx
(
skb
);
...
...
include/linux/hdlc.h
View file @
b65cb184
...
@@ -243,11 +243,15 @@ static __inline__ struct net_device_stats *hdlc_stats(struct net_device *dev)
...
@@ -243,11 +243,15 @@ static __inline__ struct net_device_stats *hdlc_stats(struct net_device *dev)
static
__inline__
unsigned
short
hdlc_type_trans
(
struct
sk_buff
*
skb
,
static
__inline__
unsigned
short
hdlc_type_trans
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
struct
net_device
*
dev
)
{
{
hdlc_device
*
hdlc
=
dev_to_hdlc
(
skb
->
dev
);
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
skb
->
mac
.
raw
=
skb
->
data
;
skb
->
dev
=
dev
;
if
(
hdlc
->
proto
.
type_trans
)
if
(
hdlc
->
proto
.
type_trans
)
return
hdlc
->
proto
.
type_trans
(
skb
,
dev
);
return
hdlc
->
proto
.
type_trans
(
skb
,
dev
);
else
else
return
__constant_
htons
(
ETH_P_HDLC
);
return
htons
(
ETH_P_HDLC
);
}
}
#endif
/* __KERNEL */
#endif
/* __KERNEL */
...
...
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