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
c4737377
Commit
c4737377
authored
Jul 02, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cxgb4i: Convert over to dst_neigh_lookup().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
0b399d46
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+4
-1
No files found.
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
View file @
c4737377
...
@@ -1142,7 +1142,7 @@ static int init_act_open(struct cxgbi_sock *csk)
...
@@ -1142,7 +1142,7 @@ static int init_act_open(struct cxgbi_sock *csk)
cxgbi_sock_set_flag
(
csk
,
CTPF_HAS_ATID
);
cxgbi_sock_set_flag
(
csk
,
CTPF_HAS_ATID
);
cxgbi_sock_get
(
csk
);
cxgbi_sock_get
(
csk
);
n
=
dst_
get_neighbour_noref
(
csk
->
dst
);
n
=
dst_
neigh_lookup
(
csk
->
dst
,
&
csk
->
daddr
.
sin_addr
.
s_addr
);
if
(
!
n
)
{
if
(
!
n
)
{
pr_err
(
"%s, can't get neighbour of csk->dst.
\n
"
,
ndev
->
name
);
pr_err
(
"%s, can't get neighbour of csk->dst.
\n
"
,
ndev
->
name
);
goto
rel_resource
;
goto
rel_resource
;
...
@@ -1182,9 +1182,12 @@ static int init_act_open(struct cxgbi_sock *csk)
...
@@ -1182,9 +1182,12 @@ static int init_act_open(struct cxgbi_sock *csk)
cxgbi_sock_set_state
(
csk
,
CTP_ACTIVE_OPEN
);
cxgbi_sock_set_state
(
csk
,
CTP_ACTIVE_OPEN
);
send_act_open_req
(
csk
,
skb
,
csk
->
l2t
);
send_act_open_req
(
csk
,
skb
,
csk
->
l2t
);
neigh_release
(
n
);
return
0
;
return
0
;
rel_resource:
rel_resource:
if
(
n
)
neigh_release
(
n
);
if
(
skb
)
if
(
skb
)
__kfree_skb
(
skb
);
__kfree_skb
(
skb
);
return
-
EINVAL
;
return
-
EINVAL
;
...
...
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