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
354ade90
Commit
354ade90
authored
Dec 16, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/enc28j60.c
parents
9f690db7
bb5f133d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
drivers/net/enc28j60.c
drivers/net/enc28j60.c
+1
-1
drivers/net/tlan.c
drivers/net/tlan.c
+15
-8
include/linux/netfilter/nfnetlink_conntrack.h
include/linux/netfilter/nfnetlink_conntrack.h
+1
-0
No files found.
drivers/net/enc28j60.c
View file @
354ade90
...
...
@@ -956,7 +956,7 @@ static void enc28j60_hw_rx(struct net_device *ndev)
/* update statistics */
ndev
->
stats
.
rx_packets
++
;
ndev
->
stats
.
rx_bytes
+=
len
;
netif_rx
(
skb
);
netif_rx
_ni
(
skb
);
}
}
/*
...
...
drivers/net/tlan.c
View file @
354ade90
...
...
@@ -1098,6 +1098,7 @@ static int TLan_StartTx( struct sk_buff *skb, struct net_device *dev )
dma_addr_t
tail_list_phys
;
u8
*
tail_buffer
;
unsigned
long
flags
;
unsigned
int
txlen
;
if
(
!
priv
->
phyOnline
)
{
TLAN_DBG
(
TLAN_DEBUG_TX
,
"TRANSMIT: %s PHY is not ready
\n
"
,
...
...
@@ -1108,6 +1109,7 @@ static int TLan_StartTx( struct sk_buff *skb, struct net_device *dev )
if
(
skb_padto
(
skb
,
TLAN_MIN_FRAME_SIZE
))
return
0
;
txlen
=
max
(
skb
->
len
,
(
unsigned
int
)
TLAN_MIN_FRAME_SIZE
);
tail_list
=
priv
->
txList
+
priv
->
txTail
;
tail_list_phys
=
priv
->
txListDMA
+
sizeof
(
TLanList
)
*
priv
->
txTail
;
...
...
@@ -1125,16 +1127,16 @@ static int TLan_StartTx( struct sk_buff *skb, struct net_device *dev )
if
(
bbuf
)
{
tail_buffer
=
priv
->
txBuffer
+
(
priv
->
txTail
*
TLAN_MAX_FRAME_SIZE
);
skb_copy_from_linear_data
(
skb
,
tail_buffer
,
skb
->
len
);
skb_copy_from_linear_data
(
skb
,
tail_buffer
,
tx
len
);
}
else
{
tail_list
->
buffer
[
0
].
address
=
pci_map_single
(
priv
->
pciDev
,
skb
->
data
,
skb
->
len
,
skb
->
data
,
tx
len
,
PCI_DMA_TODEVICE
);
TLan_StoreSKB
(
tail_list
,
skb
);
}
tail_list
->
frameSize
=
(
u16
)
skb
->
len
;
tail_list
->
buffer
[
0
].
count
=
TLAN_LAST_BUFFER
|
(
u32
)
skb
->
len
;
tail_list
->
frameSize
=
(
u16
)
tx
len
;
tail_list
->
buffer
[
0
].
count
=
TLAN_LAST_BUFFER
|
(
u32
)
tx
len
;
tail_list
->
buffer
[
1
].
count
=
0
;
tail_list
->
buffer
[
1
].
address
=
0
;
...
...
@@ -1431,7 +1433,9 @@ static u32 TLan_HandleTxEOF( struct net_device *dev, u16 host_int )
if
(
!
bbuf
)
{
struct
sk_buff
*
skb
=
TLan_GetSKB
(
head_list
);
pci_unmap_single
(
priv
->
pciDev
,
head_list
->
buffer
[
0
].
address
,
skb
->
len
,
PCI_DMA_TODEVICE
);
max
(
skb
->
len
,
(
unsigned
int
)
TLAN_MIN_FRAME_SIZE
),
PCI_DMA_TODEVICE
);
dev_kfree_skb_any
(
skb
);
head_list
->
buffer
[
8
].
address
=
0
;
head_list
->
buffer
[
9
].
address
=
0
;
...
...
@@ -2053,9 +2057,12 @@ static void TLan_FreeLists( struct net_device *dev )
list
=
priv
->
txList
+
i
;
skb
=
TLan_GetSKB
(
list
);
if
(
skb
)
{
pci_unmap_single
(
priv
->
pciDev
,
list
->
buffer
[
0
].
address
,
skb
->
len
,
PCI_DMA_TODEVICE
);
pci_unmap_single
(
priv
->
pciDev
,
list
->
buffer
[
0
].
address
,
max
(
skb
->
len
,
(
unsigned
int
)
TLAN_MIN_FRAME_SIZE
),
PCI_DMA_TODEVICE
);
dev_kfree_skb_any
(
skb
);
list
->
buffer
[
8
].
address
=
0
;
list
->
buffer
[
9
].
address
=
0
;
...
...
include/linux/netfilter/nfnetlink_conntrack.h
View file @
354ade90
...
...
@@ -141,6 +141,7 @@ enum ctattr_protonat {
#define CTA_PROTONAT_MAX (__CTA_PROTONAT_MAX - 1)
enum
ctattr_natseq
{
CTA_NAT_SEQ_UNSPEC
,
CTA_NAT_SEQ_CORRECTION_POS
,
CTA_NAT_SEQ_OFFSET_BEFORE
,
CTA_NAT_SEQ_OFFSET_AFTER
,
...
...
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