struct ixgb_adapter *adapter = netdev->priv; 
struct ixgb_adapter *adapter = netdev_priv(netdev); 
ixgb_change_mtu(struct net_device *netdev, int new_mtu){	struct ixgb_adapter *adapter = netdev->priv;	int max_frame = new_mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH;	int old_max_frame = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH;	if((max_frame < IXGB_MIN_ENET_FRAME_SIZE_WITHOUT_FCS + ENET_FCS_LENGTH)	   || (max_frame > IXGB_MAX_JUMBO_FRAME_SIZE + ENET_FCS_LENGTH)) {		IXGB_ERR("Invalid MTU setting\n");		return -EINVAL;	}	if((max_frame <= IXGB_MAX_ENET_FRAME_SIZE_WITHOUT_FCS + ENET_FCS_LENGTH)	   || (max_frame <= IXGB_RXBUFFER_2048)) {		adapter->rx_buffer_len = IXGB_RXBUFFER_2048;	} else if(max_frame <= IXGB_RXBUFFER_4096) {		adapter->rx_buffer_len = IXGB_RXBUFFER_4096;	} else if(max_frame <= IXGB_RXBUFFER_8192) {		adapter->rx_buffer_len = IXGB_RXBUFFER_8192;	} else {		adapter->rx_buffer_len = IXGB_RXBUFFER_16384;	}	netdev->mtu = new_mtu;	if(old_max_frame != max_frame && netif_running(netdev)) {		ixgb_down(adapter, TRUE);		ixgb_up(adapter);	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8908c6cd1d6889850148aeb50bb14301959adaa7/ixgb_main.c/buggy/drivers/net/ixgb/ixgb_main.c