sch_taprio.c (5ee9cd065836e5934710ca35653bce7905add20b) | sch_taprio.c (aa311596411bb75ced774f74aeb7731541925303) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3/* net/sched/sch_taprio.c Time Aware Priority Scheduler 4 * 5 * Authors: Vinicius Costa Gomes <vinicius.gomes@intel.com> 6 * 7 */ 8 --- 1857 unchanged lines hidden (view full) --- 1866 1867 err = taprio_new_flags(tb[TCA_TAPRIO_ATTR_FLAGS], 1868 q->flags, extack); 1869 if (err < 0) 1870 return err; 1871 1872 q->flags = err; 1873 | 1// SPDX-License-Identifier: GPL-2.0 2 3/* net/sched/sch_taprio.c Time Aware Priority Scheduler 4 * 5 * Authors: Vinicius Costa Gomes <vinicius.gomes@intel.com> 6 * 7 */ 8 --- 1857 unchanged lines hidden (view full) --- 1866 1867 err = taprio_new_flags(tb[TCA_TAPRIO_ATTR_FLAGS], 1868 q->flags, extack); 1869 if (err < 0) 1870 return err; 1871 1872 q->flags = err; 1873 |
1874 /* Needed for length_to_duration() during netlink attribute parsing */ 1875 taprio_set_picos_per_byte(dev, q); 1876 |
|
1874 err = taprio_parse_mqprio_opt(dev, mqprio, extack, q->flags); 1875 if (err < 0) 1876 return err; 1877 1878 err = taprio_parse_tc_entries(sch, opt, extack); 1879 if (err) 1880 return err; 1881 --- 43 unchanged lines hidden (view full) --- 1925 err = -EINVAL; 1926 goto free_sched; 1927 } 1928 1929 err = taprio_parse_clockid(sch, tb, extack); 1930 if (err < 0) 1931 goto free_sched; 1932 | 1877 err = taprio_parse_mqprio_opt(dev, mqprio, extack, q->flags); 1878 if (err < 0) 1879 return err; 1880 1881 err = taprio_parse_tc_entries(sch, opt, extack); 1882 if (err) 1883 return err; 1884 --- 43 unchanged lines hidden (view full) --- 1928 err = -EINVAL; 1929 goto free_sched; 1930 } 1931 1932 err = taprio_parse_clockid(sch, tb, extack); 1933 if (err < 0) 1934 goto free_sched; 1935 |
1933 taprio_set_picos_per_byte(dev, q); | |
1934 taprio_update_queue_max_sdu(q, new_admin, stab); 1935 1936 if (FULL_OFFLOAD_IS_ENABLED(q->flags)) 1937 err = taprio_enable_offload(dev, q, new_admin, extack); 1938 else 1939 err = taprio_disable_offload(dev, q, extack); 1940 if (err) 1941 goto free_sched; --- 634 unchanged lines hidden --- | 1936 taprio_update_queue_max_sdu(q, new_admin, stab); 1937 1938 if (FULL_OFFLOAD_IS_ENABLED(q->flags)) 1939 err = taprio_enable_offload(dev, q, new_admin, extack); 1940 else 1941 err = taprio_disable_offload(dev, q, extack); 1942 if (err) 1943 goto free_sched; --- 634 unchanged lines hidden --- |