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
c4be62a4
Commit
c4be62a4
authored
Dec 02, 2011
by
David Miller
Committed by
David S. Miller
Dec 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cxgb3: Handle NULL dst neighbour in cxgb3_offload.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a4757123
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
+15
-3
No files found.
drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
View file @
c4be62a4
...
@@ -1072,8 +1072,11 @@ static int is_offloading(struct net_device *dev)
...
@@ -1072,8 +1072,11 @@ static int is_offloading(struct net_device *dev)
static
void
cxgb_neigh_update
(
struct
neighbour
*
neigh
)
static
void
cxgb_neigh_update
(
struct
neighbour
*
neigh
)
{
{
struct
net_device
*
dev
=
neigh
->
dev
;
struct
net_device
*
dev
;
if
(
!
neigh
)
return
;
dev
=
neigh
->
dev
;
if
(
dev
&&
(
is_offloading
(
dev
)))
{
if
(
dev
&&
(
is_offloading
(
dev
)))
{
struct
t3cdev
*
tdev
=
dev2t3cdev
(
dev
);
struct
t3cdev
*
tdev
=
dev2t3cdev
(
dev
);
...
@@ -1107,6 +1110,7 @@ static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e)
...
@@ -1107,6 +1110,7 @@ static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e)
static
void
cxgb_redirect
(
struct
dst_entry
*
old
,
struct
dst_entry
*
new
)
static
void
cxgb_redirect
(
struct
dst_entry
*
old
,
struct
dst_entry
*
new
)
{
{
struct
net_device
*
olddev
,
*
newdev
;
struct
net_device
*
olddev
,
*
newdev
;
struct
neighbour
*
n
;
struct
tid_info
*
ti
;
struct
tid_info
*
ti
;
struct
t3cdev
*
tdev
;
struct
t3cdev
*
tdev
;
u32
tid
;
u32
tid
;
...
@@ -1114,8 +1118,16 @@ static void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)
...
@@ -1114,8 +1118,16 @@ static void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)
struct
l2t_entry
*
e
;
struct
l2t_entry
*
e
;
struct
t3c_tid_entry
*
te
;
struct
t3c_tid_entry
*
te
;
olddev
=
dst_get_neighbour_noref
(
old
)
->
dev
;
n
=
dst_get_neighbour_noref
(
old
);
newdev
=
dst_get_neighbour_noref
(
new
)
->
dev
;
if
(
!
n
)
return
;
olddev
=
n
->
dev
;
n
=
dst_get_neighbour_noref
(
new
);
if
(
!
n
)
return
;
newdev
=
n
->
dev
;
if
(
!
is_offloading
(
olddev
))
if
(
!
is_offloading
(
olddev
))
return
;
return
;
if
(
!
is_offloading
(
newdev
))
{
if
(
!
is_offloading
(
newdev
))
{
...
...
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