void run_com_sq(void) { char mac_addr[20]; if(q >= MV_ETH_RX_Q_NUM) q = -1; sprintf(mac_addr, "%02x:%02x:%02x:%02x:%02x:%02x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]); ethMcastAdd(port, mac_addr, q); }
void run_com_sq(void) { char mac_addr[20]; if(q >= MV_ETH_RX_Q_NUM) q = -1; sprintf(mac_addr, "%02x:%02x:%02x:%02x:%02x:%02x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]); switch(direct) { #ifdef INCLUDE_MULTI_QUEUE case TX: ethTxPolDA(port, mac_addr, q, NULL); break; #endif /* INCLUDE_MULTI_QUEUE */ case RX: ethMcastAdd(port, mac_addr, q); break; default: printk("eth proc unknown direction.\n"); } }