ethersubr.txt
| 1 | Index: if_ethersubr.c |
|---|---|
| 2 | =================================================================== |
| 3 | RCS file: /dcvs/src/sys/net/if_ethersubr.c,v |
| 4 | retrieving revision 1.76 |
| 5 | diff -u -p -r1.76 if_ethersubr.c |
| 6 | --- if_ethersubr.c 8 Jul 2008 13:50:52 -0000 1.76 |
| 7 | +++ if_ethersubr.c 24 Jul 2008 01:56:50 -0000 |
| 8 | @@ -1658,11 +1658,8 @@ ether_init_netpacket(int num, struct mbu |
| 9 | } |
| 10 | |
| 11 | static __inline struct lwkt_port * |
| 12 | -ether_mport(int num, struct mbuf **m0) |
| 13 | +ether_mport(int num, struct mbuf **m) |
| 14 | {
|
| 15 | - struct lwkt_port *port; |
| 16 | - struct mbuf *m = *m0; |
| 17 | - |
| 18 | if (num == NETISR_MAX) {
|
| 19 | /* |
| 20 | * All packets whose target msgports can't be |
| 21 | @@ -1671,13 +1668,7 @@ ether_mport(int num, struct mbuf **m0) |
| 22 | */ |
| 23 | return cpu_portfn(0); |
| 24 | } |
| 25 | - |
| 26 | - port = netisr_find_port(num, &m); |
| 27 | - if (port == NULL) |
| 28 | - return NULL; |
| 29 | - |
| 30 | - *m0 = m; |
| 31 | - return port; |
| 32 | + return netisr_find_port(num, m); |
| 33 | } |
| 34 | |
| 35 | void |