FreeBSD/sys/dev/nxge/xgehal/xgehal-device.c
/*
 * xge__hal_device_rts_mac_disable
 * @hldev: HAL device handle.
 * @index: index number where to disable the MAC addr
 *
 * Disable RTS Steering based on the MAC address.
 * This function should be called with lock acquired.
 *
 */
xge__hal_device_rts_mac_disable
@hldev: HAL device handle.
@index: index number where to disable the MAC addr

Disable RTS Steering based on the MAC address.
This function should be called with lock acquired.
xge__hal_device_rts_mac_disable @hldev : HAL device handle . @index : index number where to disable the MAC addr Disable RTS Steering based on the MAC address . This function should be called with lock acquired .
xge_hal_status_e
xge_hal_device_rts_mac_disable(xge_hal_device_h devh, int index)
{
	xge_hal_status_e status;
	u8 macaddr[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
	int max_addr = XGE_HAL_MAX_MAC_ADDRESSES;
	xge_hal_device_t *hldev = (xge_hal_device_t *)devh;
	xge_debug_ll(XGE_TRACE, "the index value is %d ", index);
	if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_HERC)
	    max_addr = XGE_HAL_MAX_MAC_ADDRESSES_HERC;
	if ( index >= max_addr )
	    return XGE_HAL_ERR_OUT_OF_MAC_ADDRESSES;
	status = xge_hal_device_macaddr_set(hldev, index, macaddr);
	if (status != XGE_HAL_OK) {
	    xge_debug_device(XGE_ERR, "%s",
	        "Not able to set the mac addr");
	    return status;
	}
	return XGE_HAL_OK;
}
xge_hal_status_e xge_hal_device_rts_mac_disable ( xge_hal_device_h devh , int index ) { xge_hal_status_e status ; u8 macaddr [ 6 ] = { 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF } ; int max_addr = XGE_HAL_MAX_MAC_ADDRESSES ; xge_hal_device_t * hldev = ( xge_hal_device_t * ) devh ; xge_debug_ll ( XGE_TRACE , " " , index ) ; if ( xge_hal_device_check_id ( hldev ) == XGE_HAL_CARD_HERC ) max_addr = XGE_HAL_MAX_MAC_ADDRESSES_HERC ; if ( index >= max_addr ) return XGE_HAL_ERR_OUT_OF_MAC_ADDRESSES ; status = xge_hal_device_macaddr_set ( hldev , index , macaddr ) ; if ( status != XGE_HAL_OK ) { xge_debug_device ( XGE_ERR , " " , " " ) ; return status ; } return XGE_HAL_OK ; }
xge__hal_device_rts_mac_disable
 @hldev: HAL device handle.
xge__hal_device_rts_mac_disable @hldev : HAL device handle .
/*
	 * Disable MAC address @ given index location
	 */