f51606537a
Older generations of QuickAssist hardware may not support all algorithms supported by newer generations. When sessions were specific to the device this only needed to be handled on session creation. With device-agnostic sessions, a session created for a newer device may get routed to an older device which can't support it. This patch adds an enum to define QAT device generations and uses this to detect and handle the above case on the data path. It also renames the capabilities structures and #defines to match the generation names and adds the generation to the device table in the documentation. Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions") Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com>