Commit f4f9a5e6 authored by Michał Mirosław's avatar Michał Mirosław Committed by David S. Miller
Browse files

gianfar: remove use of VLAN_TAG_PRESENT

parent 9df46aef
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1134,12 +1134,10 @@ static int gfar_convert_to_filer(struct ethtool_rx_flow_spec *rule,
		prio = vlan_tci_prio(rule);
		prio_mask = vlan_tci_priom(rule);

		if (cfi == VLAN_TAG_PRESENT && cfi_mask == VLAN_TAG_PRESENT) {
		if (cfi_mask) {
			if (cfi)
				vlan |= RQFPR_CFI;
			vlan_mask |= RQFPR_CFI;
		} else if (cfi != VLAN_TAG_PRESENT &&
			   cfi_mask == VLAN_TAG_PRESENT) {
			vlan_mask |= RQFPR_CFI;
		}
	}