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
nexedi
linux
Commits
b072342e
Commit
b072342e
authored
Feb 24, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sfc-3.3' of
git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc
parents
8a49ad6e
ff3bc1e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/net/ethernet/sfc/rx.c
drivers/net/ethernet/sfc/rx.c
+2
-2
No files found.
drivers/net/ethernet/sfc/rx.c
View file @
b072342e
...
@@ -156,11 +156,10 @@ static int efx_init_rx_buffers_skb(struct efx_rx_queue *rx_queue)
...
@@ -156,11 +156,10 @@ static int efx_init_rx_buffers_skb(struct efx_rx_queue *rx_queue)
if
(
unlikely
(
!
skb
))
if
(
unlikely
(
!
skb
))
return
-
ENOMEM
;
return
-
ENOMEM
;
/* Adjust the SKB for padding
and checksum
*/
/* Adjust the SKB for padding */
skb_reserve
(
skb
,
NET_IP_ALIGN
);
skb_reserve
(
skb
,
NET_IP_ALIGN
);
rx_buf
->
len
=
skb_len
-
NET_IP_ALIGN
;
rx_buf
->
len
=
skb_len
-
NET_IP_ALIGN
;
rx_buf
->
is_page
=
false
;
rx_buf
->
is_page
=
false
;
skb
->
ip_summed
=
CHECKSUM_UNNECESSARY
;
rx_buf
->
dma_addr
=
pci_map_single
(
efx
->
pci_dev
,
rx_buf
->
dma_addr
=
pci_map_single
(
efx
->
pci_dev
,
skb
->
data
,
rx_buf
->
len
,
skb
->
data
,
rx_buf
->
len
,
...
@@ -496,6 +495,7 @@ static void efx_rx_packet_gro(struct efx_channel *channel,
...
@@ -496,6 +495,7 @@ static void efx_rx_packet_gro(struct efx_channel *channel,
EFX_BUG_ON_PARANOID
(
!
checksummed
);
EFX_BUG_ON_PARANOID
(
!
checksummed
);
rx_buf
->
u
.
skb
=
NULL
;
rx_buf
->
u
.
skb
=
NULL
;
skb
->
ip_summed
=
CHECKSUM_UNNECESSARY
;
gro_result
=
napi_gro_receive
(
napi
,
skb
);
gro_result
=
napi_gro_receive
(
napi
,
skb
);
}
}
...
...
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