15 Jun 2012 05:17
[PATCH] tipc: optimize initialization of network device notifier
Ying Xue <ying.xue <at> windriver.com>
2012-06-15 03:17:35 GMT
2012-06-15 03:17:35 GMT
Change the initialization of network device notifier from dynamic way
to static way, possibly resulting in a better performance for the
initialization of Ethernet bearer.
Signed-off-by: Ying Xue <ying.xue <at> windriver.com>
---
net/tipc/eth_media.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c
index cafb51f..aa61a50 100644
--- a/net/tipc/eth_media.c
+++ b/net/tipc/eth_media.c
<at> <at> -58,7 +58,6 <at> <at> struct eth_bearer {
static const struct tipc_media eth_media_info;
static struct eth_bearer eth_bearers[MAX_ETH_BEARERS];
static int eth_started;
-static struct notifier_block notifier;
/**
* eth_media_addr_set - initialize Ethernet media address structure
<at> <at> -340,6 +339,14 <at> <at> static const struct tipc_media eth_media_info = {
.name = "eth"
};
+/*
+ * Network device notifier info
+ */
+static struct notifier_block notifier = {
+ .notifier_call = recv_notification,
(Continue reading)
> //E
>
> On 2012-06-15 05:17, Ying Xue wrote:
>> Change the initialization of network device notifier from dynamic way
>> to static way, possibly resulting in a better performance for the
>> initialization of Ethernet bearer.
>>
>> Signed-off-by: Ying Xue<ying.xue <at> windriver.com>
>> ---
>> net/tipc/eth_media.c | 11 ++++++++---
>> 1 files changed, 8 insertions(+), 3 deletions(-)
>>
>> diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c
>> index cafb51f..aa61a50 100644
>> --- a/net/tipc/eth_media.c
>> +++ b/net/tipc/eth_media.c
>> <at> <at> -58,7 +58,6 <at> <at> struct eth_bearer {
RSS Feed