diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2024-01-25 13:57:55 -0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-30 11:49:04 +0100 |
commit | 7a25fe5cd5fb2265065ac6765c53c0a1f1e874d3 (patch) | |
tree | f53bf71b8039d9f96ba2937006489856748ba5ec /net/unix/af_unix.c | |
parent | 803bef817807d2d36c930dada20c96fffae0dd19 (diff) |
ice: stop destroying and reinitalizing Tx tracker during reset
The ice driver currently attempts to destroy and re-initialize the Tx
timestamp tracker during the reset flow. The release of the Tx tracker
only happened during CORE reset or GLOBAL reset. The ice_ptp_rebuild()
function always calls the ice_ptp_init_tx function which will allocate
a new tracker data structure, resulting in memory leaks during PF reset.
Certainly the driver should not be allocating a new tracker without
removing the old tracker data, as this results in a memory leak.
Additionally, there's no reason to remove the tracker memory during a
reset. Remove this logic from the reset and rebuild flow. Instead of
releasing the Tx tracker, flush outstanding timestamps just before we
reset the PHY timestamp block in ice_ptp_cfg_phy_interrupt().
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions