diff options
author | Ying Xue <ying.xue@windriver.com> | 2013-12-10 20:45:43 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-11 00:17:43 -0500 |
commit | e4d050cbf7720d8bcc781f4ef557d37ed148a5c4 (patch) | |
tree | 57e491fae1ead5a0c587c1085266dbdbb9d30f45 /kernel/timeconst.bc | |
parent | 6e967adf798ae5066488fd0c2b2466d06c642f23 (diff) | |
download | blackbird-op-linux-e4d050cbf7720d8bcc781f4ef557d37ed148a5c4.tar.gz blackbird-op-linux-e4d050cbf7720d8bcc781f4ef557d37ed148a5c4.zip |
tipc: eliminate code duplication in media layer
Currently TIPC supports two L2 media types, Ethernet and Infiniband.
Because both these media are accessed through the common net_device API,
several functions in the two media adaptation files turn out to be
fully or almost identical, leading to unnecessary code duplication.
In this commit we extract this common code from the two media files
and move them to the generic bearer.c. Additionally, we change
the function names to reflect their real role: to access L2 media,
irrespective of type.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Cc: Patrick McHardy <kaber@trash.net>
Reviewed-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/timeconst.bc')
0 files changed, 0 insertions, 0 deletions