* Update TSO limit of a network adapter. * * Returns zero if no change. Else non-zero. */
| 836 | * Returns zero if no change. Else non-zero. |
| 837 | */ |
| 838 | int |
| 839 | if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *pmax) |
| 840 | { |
| 841 | int retval = 0; |
| 842 | if (ifp->if_hw_tsomax != pmax->tsomaxbytes) { |
| 843 | ifp->if_hw_tsomax = pmax->tsomaxbytes; |
| 844 | retval++; |
| 845 | } |
| 846 | if (ifp->if_hw_tsomaxsegsize != pmax->tsomaxsegsize) { |
| 847 | ifp->if_hw_tsomaxsegsize = pmax->tsomaxsegsize; |
| 848 | retval++; |
| 849 | } |
| 850 | if (ifp->if_hw_tsomaxsegcount != pmax->tsomaxsegcount) { |
| 851 | ifp->if_hw_tsomaxsegcount = pmax->tsomaxsegcount; |
| 852 | retval++; |
| 853 | } |
| 854 | return (retval); |
| 855 | } |
| 856 | |
| 857 | static void |
| 858 | if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc) |
no outgoing calls
no test coverage detected