Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/e1000/e1000_vf.c
Show First 20 Lines • Show All 482 Lines • ▼ Show 20 Lines | s32 e1000_promisc_set_vf(struct e1000_hw *hw, enum e1000_promisc_type type) | ||||
s32 ret_val; | s32 ret_val; | ||||
switch (type) { | switch (type) { | ||||
case e1000_promisc_multicast: | case e1000_promisc_multicast: | ||||
msgbuf |= E1000_VF_SET_PROMISC_MULTICAST; | msgbuf |= E1000_VF_SET_PROMISC_MULTICAST; | ||||
break; | break; | ||||
case e1000_promisc_enabled: | case e1000_promisc_enabled: | ||||
msgbuf |= E1000_VF_SET_PROMISC_MULTICAST; | msgbuf |= E1000_VF_SET_PROMISC_MULTICAST; | ||||
/* FALLTHROUGH */ | |||||
case e1000_promisc_unicast: | case e1000_promisc_unicast: | ||||
msgbuf |= E1000_VF_SET_PROMISC_UNICAST; | msgbuf |= E1000_VF_SET_PROMISC_UNICAST; | ||||
/* FALLTHROUGH */ | |||||
case e1000_promisc_disabled: | case e1000_promisc_disabled: | ||||
break; | break; | ||||
default: | default: | ||||
return -E1000_ERR_MAC_INIT; | return -E1000_ERR_MAC_INIT; | ||||
} | } | ||||
ret_val = mbx->ops.write_posted(hw, &msgbuf, 1, 0); | ret_val = mbx->ops.write_posted(hw, &msgbuf, 1, 0); | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |