Lines Matching refs:gate
708 if (act->gate.prio < -1 || act->gate.prio > SPX5_PSFP_SG_MAX_IPV) {
709 NL_SET_ERR_MSG_MOD(extack, "Invalid gate priority");
713 if (act->gate.cycletime < SPX5_PSFP_SG_MIN_CYCLE_TIME_NS ||
714 act->gate.cycletime > SPX5_PSFP_SG_MAX_CYCLE_TIME_NS) {
715 NL_SET_ERR_MSG_MOD(extack, "Invalid gate cycletime");
719 if (act->gate.cycletimeext > SPX5_PSFP_SG_MAX_CYCLE_TIME_NS) {
720 NL_SET_ERR_MSG_MOD(extack, "Invalid gate cycletimeext");
724 if (act->gate.num_entries >= SPX5_PSFP_GCE_CNT) {
725 NL_SET_ERR_MSG_MOD(extack, "Invalid number of gate entries");
730 sg->ipv = act->gate.prio;
731 sg->num_entries = act->gate.num_entries;
732 sg->cycletime = act->gate.cycletime;
733 sg->cycletimeext = act->gate.cycletimeext;
736 sg->gce[i].gate_state = !!act->gate.entries[i].gate_state;
737 sg->gce[i].interval = act->gate.entries[i].interval;
738 sg->gce[i].ipv = act->gate.entries[i].ipv;
739 sg->gce[i].maxoctets = act->gate.entries[i].maxoctets;
783 /* Must always have a stream gate - max sdu (filter option) is evaluated
784 * after frames have passed the gate, so in case of only a policer, we
785 * allocate a stream gate that is always open.
811 /* Map stream filter to stream gate */
814 /* Add new stream-filter and map it to a steam gate */