Lines Matching +full:inverted +full:- +full:out
3 Copyright (c) 2001-2017, Intel Corporation
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43 if (!(sc->feat_en & IXGBE_FEATURE_FDIR)) in ixgbe_init_fdir()
46 sc->hw.mac.ops.setup_rxpba(&sc->hw, 0, hdrm, in ixgbe_init_fdir()
48 ixgbe_init_fdir_signature_82599(&sc->hw, fdir_pballoc); in ixgbe_init_fdir()
58 if (!(sc->feat_en & IXGBE_FEATURE_FDIR)) in ixgbe_reinit_fdir()
60 if (sc->fdir_reinit != 1) /* Shouldn't happen */ in ixgbe_reinit_fdir()
62 ixgbe_reinit_fdir_tables_82599(&sc->hw); in ixgbe_reinit_fdir()
63 sc->fdir_reinit = 0; in ixgbe_reinit_fdir()
64 /* re-enable flow director interrupts */ in ixgbe_reinit_fdir()
65 IXGBE_WRITE_REG(&sc->hw, IXGBE_EIMS, IXGBE_EIMS_FLOW_DIR); in ixgbe_reinit_fdir()
82 struct ixgbe_softc *sc = txr->sc; in ixgbe_atr()
94 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) { in ixgbe_atr()
96 etype = eh->evl_proto; in ixgbe_atr()
99 etype = eh->evl_encap_proto; in ixgbe_atr()
106 ip = (struct ip *)(mp->m_data + ehdrlen); in ixgbe_atr()
107 ip_hlen = ip->ip_hl << 2; in ixgbe_atr()
110 switch (ip->ip_p) { in ixgbe_atr()
113 /* src and dst are inverted */ in ixgbe_atr()
114 common.port.dst ^= th->th_sport; in ixgbe_atr()
115 common.port.src ^= th->th_dport; in ixgbe_atr()
120 /* src and dst are inverted */ in ixgbe_atr()
121 common.port.dst ^= uh->uh_sport; in ixgbe_atr()
122 common.port.src ^= uh->uh_dport; in ixgbe_atr()
129 input.formatted.vlan_id = htobe16(mp->m_pkthdr.ether_vtag); in ixgbe_atr()
130 if (mp->m_pkthdr.ether_vtag) in ixgbe_atr()
134 common.ip ^= ip->ip_src.s_addr ^ ip->ip_dst.s_addr; in ixgbe_atr()
136 que = &sc->queues[txr->me]; in ixgbe_atr()
141 ixgbe_fdir_add_signature_filter_82599(&sc->hw, in ixgbe_atr()
142 input, common, que->msix); in ixgbe_atr()