igc: Add checking for basetime less than zero
authorMuhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Fri, 9 Dec 2022 04:15:19 +0000 (12:15 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 15 Dec 2022 21:19:39 +0000 (13:19 -0800)
commit3b61764fb49a6e147ac90d71dccdddc9d5508ba1
tree38fe5bfd0960eb7bcfeb133978cac642769b2a87
parentd8f45be01dd9381065a3778a579385249ed011dc
igc: Add checking for basetime less than zero

Using the tc qdisc command, the user can set basetime to any value.
Checking should be done on the driver's side to prevent registering
basetime values that are less than zero.

Fixes: ec50a9d437f0 ("igc: Add support for taprio offloading")
Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c