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
7560790f
Commit
7560790f
authored
Jan 07, 2003
by
Andrew Morton
Committed by
James Morris
Jan 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4 TCP]: Dont export or inline __tcp_put_port, but do inline tcp_put_port.
parent
e9fd9cdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
include/net/tcp.h
include/net/tcp.h
+0
-1
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+2
-2
No files found.
include/net/tcp.h
View file @
7560790f
...
...
@@ -638,7 +638,6 @@ DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics);
#define TCP_DEC_STATS(field) SNMP_DEC_STATS(tcp_statistics, field)
extern
void
tcp_put_port
(
struct
sock
*
sk
);
extern
void
__tcp_put_port
(
struct
sock
*
sk
);
extern
void
tcp_inherit_port
(
struct
sock
*
sk
,
struct
sock
*
child
);
extern
void
tcp_v4_err
(
struct
sk_buff
*
skb
,
u32
);
...
...
net/ipv4/tcp_ipv4.c
View file @
7560790f
...
...
@@ -286,7 +286,7 @@ static int tcp_v4_get_port(struct sock *sk, unsigned short snum)
/* Get rid of any references to a local port held by the
* given sock.
*/
__inline__
void
__tcp_put_port
(
struct
sock
*
sk
)
static
void
__tcp_put_port
(
struct
sock
*
sk
)
{
struct
inet_opt
*
inet
=
inet_sk
(
sk
);
struct
tcp_bind_hashbucket
*
head
=
&
tcp_bhash
[
tcp_bhashfn
(
inet
->
num
)];
...
...
@@ -308,7 +308,7 @@ __inline__ void __tcp_put_port(struct sock *sk)
spin_unlock
(
&
head
->
lock
);
}
void
tcp_put_port
(
struct
sock
*
sk
)
__inline__
void
tcp_put_port
(
struct
sock
*
sk
)
{
local_bh_disable
();
__tcp_put_port
(
sk
);
...
...
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