code: func DevLinkSetEswitchMode(Dev *DevlinkDevice, NewMode string) error {
  	return pkgHandle.DevLinkSetEswitchMode(Dev, NewMode)
  }
docs: // DevLinkSetEswitchMode sets eswitch mode if able to set successfully or
  // returns an error code.
  // Equivalent to: `devlink dev eswitch set $dev mode switchdev`
  // Equivalent to: `devlink dev eswitch set $dev mode legacy`