diff options
| author | Takashi Iwai <tiwai@suse.de> | 2011-08-08 08:30:29 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2011-08-08 08:30:29 -0400 |
| commit | 0a2d31b62dba9b5b92a38c67c9cc42630513662a (patch) | |
| tree | f755d74ec85248de645e10c45ed1a2ed467530f6 /net/tipc/link.c | |
| parent | 8039290a91c5dc4414093c086987a5d7738fe2fd (diff) | |
| parent | df944f66784e6d4f2f50739263a4947885d8b6ae (diff) | |
Merge branch 'fix/kconfig' into for-linus
Diffstat (limited to 'net/tipc/link.c')
| -rw-r--r-- | net/tipc/link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 5ed4b4f7452d..f89570c54f54 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
| @@ -1572,7 +1572,7 @@ static struct sk_buff *link_insert_deferred_queue(struct link *l_ptr, | |||
| 1572 | static int link_recv_buf_validate(struct sk_buff *buf) | 1572 | static int link_recv_buf_validate(struct sk_buff *buf) |
| 1573 | { | 1573 | { |
| 1574 | static u32 min_data_hdr_size[8] = { | 1574 | static u32 min_data_hdr_size[8] = { |
| 1575 | SHORT_H_SIZE, MCAST_H_SIZE, LONG_H_SIZE, DIR_MSG_H_SIZE, | 1575 | SHORT_H_SIZE, MCAST_H_SIZE, NAMED_H_SIZE, BASIC_H_SIZE, |
| 1576 | MAX_H_SIZE, MAX_H_SIZE, MAX_H_SIZE, MAX_H_SIZE | 1576 | MAX_H_SIZE, MAX_H_SIZE, MAX_H_SIZE, MAX_H_SIZE |
| 1577 | }; | 1577 | }; |
| 1578 | 1578 | ||
| @@ -2553,7 +2553,7 @@ int tipc_link_recv_fragment(struct sk_buff **pending, struct sk_buff **fb, | |||
| 2553 | u32 msg_sz = msg_size(imsg); | 2553 | u32 msg_sz = msg_size(imsg); |
| 2554 | u32 fragm_sz = msg_data_sz(fragm); | 2554 | u32 fragm_sz = msg_data_sz(fragm); |
| 2555 | u32 exp_fragm_cnt = msg_sz/fragm_sz + !!(msg_sz % fragm_sz); | 2555 | u32 exp_fragm_cnt = msg_sz/fragm_sz + !!(msg_sz % fragm_sz); |
| 2556 | u32 max = TIPC_MAX_USER_MSG_SIZE + LONG_H_SIZE; | 2556 | u32 max = TIPC_MAX_USER_MSG_SIZE + NAMED_H_SIZE; |
| 2557 | if (msg_type(imsg) == TIPC_MCAST_MSG) | 2557 | if (msg_type(imsg) == TIPC_MCAST_MSG) |
| 2558 | max = TIPC_MAX_USER_MSG_SIZE + MCAST_H_SIZE; | 2558 | max = TIPC_MAX_USER_MSG_SIZE + MCAST_H_SIZE; |
| 2559 | if (msg_size(imsg) > max) { | 2559 | if (msg_size(imsg) > max) { |
| @@ -2882,7 +2882,7 @@ static int tipc_link_stats(const char *name, char *buf, const u32 buf_size) | |||
| 2882 | profile_total = 1; | 2882 | profile_total = 1; |
| 2883 | tipc_printf(&pb, " TX profile sample:%u packets average:%u octets\n" | 2883 | tipc_printf(&pb, " TX profile sample:%u packets average:%u octets\n" |
| 2884 | " 0-64:%u%% -256:%u%% -1024:%u%% -4096:%u%% " | 2884 | " 0-64:%u%% -256:%u%% -1024:%u%% -4096:%u%% " |
| 2885 | "-16354:%u%% -32768:%u%% -66000:%u%%\n", | 2885 | "-16384:%u%% -32768:%u%% -66000:%u%%\n", |
| 2886 | l_ptr->stats.msg_length_counts, | 2886 | l_ptr->stats.msg_length_counts, |
| 2887 | l_ptr->stats.msg_lengths_total / profile_total, | 2887 | l_ptr->stats.msg_lengths_total / profile_total, |
| 2888 | percent(l_ptr->stats.msg_length_profile[0], profile_total), | 2888 | percent(l_ptr->stats.msg_length_profile[0], profile_total), |
