diff options
author | Ying Xue <ying.xue@windriver.com> | 2013-06-17 10:54:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-17 18:53:00 -0400 |
commit | f1733d7580ff94deb8ea071a293c23939ae0d450 (patch) | |
tree | 41e10295a1546d044cf529267f703e09b87b03d3 /net/tipc/port.h | |
parent | 198d73b82bf78739f8f11cf7ff567a2e0da1dbef (diff) |
tipc: remove user_port instance from tipc_port structure
After the native API has been completely removed, the 'user_port'
field in struct tipc_port becomes unused, and can be removed.
As a consequence, the "usrmem" argument in tipc_msg_build() is no
longer needed, and so we remove that one too.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/port.h')
-rw-r--r-- | net/tipc/port.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/net/tipc/port.h b/net/tipc/port.h index 7fd37c202ce6..4779f0a82234 100644 --- a/net/tipc/port.h +++ b/net/tipc/port.h | |||
@@ -47,18 +47,6 @@ | |||
47 | SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE)) | 47 | SKB_TRUESIZE(TIPC_MAX_USER_MSG_SIZE)) |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * struct user_port - TIPC user port (used with native API) | ||
51 | * @usr_handle: user-specified field | ||
52 | * @ref: object reference to associated TIPC port | ||
53 | * | ||
54 | * <various callback routines> | ||
55 | */ | ||
56 | struct user_port { | ||
57 | void *usr_handle; | ||
58 | u32 ref; | ||
59 | }; | ||
60 | |||
61 | /** | ||
62 | * struct tipc_port - TIPC port structure | 50 | * struct tipc_port - TIPC port structure |
63 | * @usr_handle: pointer to additional user-defined information about port | 51 | * @usr_handle: pointer to additional user-defined information about port |
64 | * @lock: pointer to spinlock for controlling access to port | 52 | * @lock: pointer to spinlock for controlling access to port |
@@ -74,7 +62,6 @@ struct user_port { | |||
74 | * @port_list: adjacent ports in TIPC's global list of ports | 62 | * @port_list: adjacent ports in TIPC's global list of ports |
75 | * @dispatcher: ptr to routine which handles received messages | 63 | * @dispatcher: ptr to routine which handles received messages |
76 | * @wakeup: ptr to routine to call when port is no longer congested | 64 | * @wakeup: ptr to routine to call when port is no longer congested |
77 | * @user_port: ptr to user port associated with port (if any) | ||
78 | * @wait_list: adjacent ports in list of ports waiting on link congestion | 65 | * @wait_list: adjacent ports in list of ports waiting on link congestion |
79 | * @waiting_pkts: | 66 | * @waiting_pkts: |
80 | * @sent: # of non-empty messages sent by port | 67 | * @sent: # of non-empty messages sent by port |
@@ -101,7 +88,6 @@ struct tipc_port { | |||
101 | struct list_head port_list; | 88 | struct list_head port_list; |
102 | u32 (*dispatcher)(struct tipc_port *, struct sk_buff *); | 89 | u32 (*dispatcher)(struct tipc_port *, struct sk_buff *); |
103 | void (*wakeup)(struct tipc_port *); | 90 | void (*wakeup)(struct tipc_port *); |
104 | struct user_port *user_port; | ||
105 | struct list_head wait_list; | 91 | struct list_head wait_list; |
106 | u32 waiting_pkts; | 92 | u32 waiting_pkts; |
107 | u32 sent; | 93 | u32 sent; |