Pradeep wrote:
 > 1 Are you doing a mac_link_update(down) when unplumbing the device,

My m_stop() routine stops the NIC.  After the NIC has processed all
pending packets, the link is brought down, and mac_link_update() is
called.


 > 2.I missed out some of the message , just calrify me are you doing a
 >   setting MAC_CAPAB_HCKSUM in the capabilities.
 >

Yes.  To clarify, here is the contents of my m_getcapab() routine:

        switch (cap) {
        case MAC_CAPAB_HCKSUM:
                cap_hcksum = cap_data;
                *cap_hcksum = HCKSUM_INET_PARTIAL;
                break;

        case MAC_CAPAB_LSO:
                cap_lso = cap_data;
                if (!myri10ge_use_lso)
                        return (B_FALSE);
                if (!(mgp->features & MYRI10GE_TSO))
                        return (B_FALSE);
                cap_lso->lso_flags = LSO_TX_BASIC_TCP_IPV4;
                cap_lso->lso_basic_tcp_ipv4.lso_max = (uint16_t)-1;
                break;

        default:
                return (B_FALSE);
        }
        return (B_TRUE);

Drew
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to