Lines Matching full:offload

87 	struct tc_taprio_qopt_offload offload;  member
283 /* txtime-assist and full offload are mutually exclusive */ in taprio_flags_valid()
439 …WARN_ONCE(1, "Trying to enqueue skb into the root of a taprio qdisc configured with full offload\n… in taprio_enqueue()
451 * smaller chunks. Skip it for the full offload case, as the driver in taprio_enqueue()
534 WARN_ONCE(1, "Trying to peek into the root of a taprio qdisc configured with full offload\n"); in taprio_peek_offload()
643 WARN_ONCE(1, "Trying to dequeue from the root of a taprio qdisc configured with full offload\n"); in taprio_dequeue_offload()
1136 __offload = kzalloc(struct_size(__offload, offload.entries, num_entries), in taprio_offload_alloc()
1143 return &__offload->offload; in taprio_offload_alloc()
1147 *offload) in taprio_offload_get()
1151 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_get()
1152 offload); in taprio_offload_get()
1156 return offload; in taprio_offload_get()
1160 void taprio_offload_free(struct tc_taprio_qopt_offload *offload) in taprio_offload_free() argument
1164 __offload = container_of(offload, struct __tc_taprio_qopt_offload, in taprio_offload_free()
1165 offload); in taprio_offload_free()
1177 * When using full offload, the admin configuration is promoted to oper at the
1183 * offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump().
1223 struct tc_taprio_qopt_offload *offload) in taprio_sched_to_offload() argument
1228 offload->base_time = sched->base_time; in taprio_sched_to_offload()
1229 offload->cycle_time = sched->cycle_time; in taprio_sched_to_offload()
1230 offload->cycle_time_extension = sched->cycle_time_extension; in taprio_sched_to_offload()
1233 struct tc_taprio_sched_entry *e = &offload->entries[i]; in taprio_sched_to_offload()
1242 offload->num_entries = i; in taprio_sched_to_offload()
1251 struct tc_taprio_qopt_offload *offload; in taprio_enable_offload() local
1256 "Device does not support taprio offload"); in taprio_enable_offload()
1260 offload = taprio_offload_alloc(sched->num_entries); in taprio_enable_offload()
1261 if (!offload) { in taprio_enable_offload()
1263 "Not enough memory for enabling offload mode"); in taprio_enable_offload()
1266 offload->enable = 1; in taprio_enable_offload()
1267 taprio_sched_to_offload(dev, sched, offload); in taprio_enable_offload()
1269 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_enable_offload()
1272 "Device failed to setup taprio offload"); in taprio_enable_offload()
1277 taprio_offload_free(offload); in taprio_enable_offload()
1287 struct tc_taprio_qopt_offload *offload; in taprio_disable_offload() local
1296 offload = taprio_offload_alloc(0); in taprio_disable_offload()
1297 if (!offload) { in taprio_disable_offload()
1299 "Not enough memory to disable offload mode"); in taprio_disable_offload()
1302 offload->enable = 0; in taprio_disable_offload()
1304 err = ops->ndo_setup_tc(dev, TC_SETUP_QDISC_TAPRIO, offload); in taprio_disable_offload()
1307 "Device failed to disable offload"); in taprio_disable_offload()
1312 taprio_offload_free(offload); in taprio_disable_offload()
1317 /* If full offload is enabled, the only possible clockid is the net device's
1340 "The 'clockid' cannot be specified for full offload"); in taprio_parse_clockid()
1756 /* access to the child qdiscs is not needed in offload mode */ in taprio_attach()