[PATCH 6.1 34/42] octeontx2-af: Add validation for lmac type