Blockade of the spermatic cord