The correct answer is A. The general is ridiculing Ivan, as well as himself, for being a Cossack.
This passage allows for a satirical interpretation by highlighting the general's condescending remarks about Ivan's condition and background while also subtly poking fun at the general's own identity as a Cossack. The general's tone and the context suggest an underlying mockery of both Ivan's perceived savagery and the stereotype associated with their ethnic identity.