* Compose the global and per-protocol policies on dispatch, and return the * dispatch policy to use. */
| 773 | * dispatch policy to use. |
| 774 | */ |
| 775 | static u_int |
| 776 | netisr_get_dispatch(struct netisr_proto *npp) |
| 777 | { |
| 778 | |
| 779 | /* |
| 780 | * Protocol-specific configuration overrides the global default. |
| 781 | */ |
| 782 | if (npp->np_dispatch != NETISR_DISPATCH_DEFAULT) |
| 783 | return (npp->np_dispatch); |
| 784 | return (netisr_dispatch_policy); |
| 785 | } |
| 786 | |
| 787 | /* |
| 788 | * Look up the workstream given a packet and source identifier. Do this by |
no outgoing calls
no test coverage detected