HomeFreeBSD

ena: Use device_set_desc in probe

Description

ena: Use device_set_desc in probe

During probe the driver created a temporary buffer to which the value of
DEVICE_DESC constant was printed. This buffer was then copied to the
device structure using device_set_desc_copy. Since the value of this
string is exactly the same for every device using the ENA driver, using
sprintf is unnecessary, and device_set_desc can be used instead.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 755e60ca046390bdcfc097b6a8f1a032d47a7b65)

Details

Provenance
dgr_semihalf.comAuthored on Jun 10 2022, 9:18 AM
mwCommitted on Jul 26 2022, 7:33 PM
Parents
rGed037ffb2c05: ena: Move ena_copy_eni_metrics into separate task
Branches
Unknown
Tags
Unknown